XamlFlowSaveOptions.ImagesFolderAlias
XamlFlowSaveOptions.ImagesFolderAlias property
Specifies the name of the folder used to construct image URIs written into an XAML document. Default is an empty string.
public string ImagesFolderAlias { get; set; }
Remarks
When you save a document in XAML format, Wordize needs to save all images embedded in the document as standalone files. ImagesFolder
allows you to specify where the images will be saved and ImagesFolderAlias
allows to specify how the image URIs will be constructed.
If ImagesFolderAlias
is not an empty string, then the image URI written to XAML will be ImagesFolderAlias + <image file name>.
If ImagesFolderAlias
is an empty string, then the image URI written to XAML will be ImagesFolder + <image file name>.
If ImagesFolderAlias
is set to ‘.’ (dot), then the image file name will be written to XAML without path regardless of other options.
Examples
Shows how to specify the physical folder where images are saved in XamlFlow format.
XamlFlowSaveOptions xamlFlowSaveOptions = new XamlFlowSaveOptions();
xamlFlowSaveOptions.ImagesFolder = ArtifactsDir + "xamlFlowImages";
xamlFlowSaveOptions.ImagesFolderAlias = "xamlFlowImages";
Converter.Create()
.From(MyDir + "Merger.docx")
.To(ArtifactsDir + "XamlFlowSaveOptions.ImagesFolder.xaml", xamlFlowSaveOptions)
.Execute();
See Also
- class XamlFlowSaveOptions
- namespace Wordize.Saving
- assembly Wordize