TX Text Control .NET for WPF

SearchPath Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies a directory name where sub-templates and images (for image merging) should be searched. If SearchPath is empty, the root directory is used.

Syntax

public string SearchPath { get; set; }

Examples

The following example uses MailMerge.SearchPath to configure search path as part of the mail merge workflow. The configured value is checked before the workflow continues.

mailMerge.SearchPath = "document.docx";
if (!string.IsNullOrWhiteSpace(mailMerge.SearchPath))
{
    Console.WriteLine($"Search Path: {mailMerge.SearchPath}");
}