MarkdownToResourceExportExportMarkdownDocumentToResourceFile Method |
Exports the markdown document and its referenced images to the string and the image resource file.
Namespace: Altaxo.TextAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void ExportMarkdownDocumentToResourceFile(
TextDocument document,
string resourceKeyOfDocument,
string prefixOfResourceFiles,
IResourceReader stringResourceReader,
IResourceWriter stringResourceWriter,
bool storeStringResourcesWithAbsoluteKey,
IResourceReader imageResourceReader,
IResourceWriter imageResourceWriter,
bool storeImageResourcesWithAbsoluteKey
)
Parameters
- document TextDocument
- The markdown document to export.
- resourceKeyOfDocument String
- The relative resource key in which the markdown text should be stored.
- prefixOfResourceFiles String
- The prefix of resource files. It is assumed that string resources and image resources reside in the same folder.
Example: If the resource files reside in the source folder /Calc/FitFunctions, you must provide 'Altaxo.Calc.FitFunctions' (Altaxo first because its the namespace of the assembly).
- stringResourceReader IResourceReader
- The string resource reader.
- stringResourceWriter IResourceWriter
- The string resource writer.
- storeStringResourcesWithAbsoluteKey Boolean
- If true, the string resources are stored with the absolute resource key instead of the relative resource key.
- imageResourceReader IResourceReader
- The image resource reader.
- imageResourceWriter IResourceWriter
- The image resource writer.
- storeImageResourcesWithAbsoluteKey Boolean
- If true, the image resources are stored with the absolute resource key instead of the relative resource key.
Exceptions Exception | Condition |
---|
ArgumentNullException |
stringResourceReader
or
stringResourceWriter
or
imageResourceReader
or
imageResourceWriter
|
See Also