ImageSearchPath Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Sets a file path that is used to search for resources like images or hypertext links. This path replaces all absolute file paths used in the document.
Syntax
public string ImageSearchPath { get; set; }Public Property ImageSearchPath As StringExamples
The following example configures how a WordprocessingML template is loaded by using LoadSettings.ImageSearchPath.
LoadSettings loadSettings = new();
loadSettings.ImageSearchPath = "document.docx";
if (!string.IsNullOrWhiteSpace(loadSettings.ImageSearchPath))
{
Console.WriteLine($"Image Search Path: {loadSettings.ImageSearchPath}");
}
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);Dim loadSettings As New LoadSettings()
loadSettings.ImageSearchPath = "document.docx"
If Not String.IsNullOrWhiteSpace(loadSettings.ImageSearchPath) Then
Console.WriteLine($"Image Search Path: {loadSettings.ImageSearchPath}")
End If
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)