MarkdownToResourceExportExportMarkdownDocumentsToResourceFiles(IEnumerableValueTupleTextDocument, String, String, IResourceReader, IResourceWriter, Boolean, IResourceReader, IResourceWriter, Boolean) Method |
Exports the markdown documents and their 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 ExportMarkdownDocumentsToResourceFiles(
IEnumerable<(TextDocument document, string relativeResourceKeyForDocument)> documents,
string prefixOfResourceFiles,
IResourceReader stringResourceReader,
IResourceWriter stringResourceWriter,
bool storeStringResourcesWithAbsoluteKey,
IResourceReader imageResourceReader,
IResourceWriter imageResourceWriter,
bool storeImageResourcesWithAbsoluteKey
)
Parameters
- documents IEnumerableValueTupleTextDocument, String
- The documents as an enumerable of tuples, consisting of the markdown document and the relative resource key
in which it 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