ImageSavePath Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Sets a file path that is used to save resources like images when images are saved as file link. If this location does not exists it is generated.
Syntax
public string ImageSavePath { get; set; }Public Property ImageSavePath As StringExamples
The following example configures how the current document is exported to WordprocessingML by using SaveSettings.ImageSavePath.
textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();
saveSettings.ImageSavePath = "document.docx";
if (!string.IsNullOrWhiteSpace(saveSettings.ImageSavePath))
{
Console.WriteLine($"Image Save Path: {saveSettings.ImageSavePath}");
}
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.ImageSavePath = "document.docx"
If Not String.IsNullOrWhiteSpace(saveSettings.ImageSavePath) Then
Console.WriteLine($"Image Save Path: {saveSettings.ImageSavePath}")
End If
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)