TX Text Control .NET for WPF

ApplicationFieldTypeNames Property

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

Description

Specifies an array of strings containing the type names of fields which are to be imported. This property is only taken into account, if the LoadSettings.ApplicationFieldFormat property is set to ApplicationFieldFormat.MSWord or ApplicationFieldFormat.HighEdit. For example, if the LoadSettings.ApplicationFieldFormat is set to ApplicationFieldFormat.MSWord and this array has the single string MERGEFIELD only Microsoft Word Merge Fields are loaded. If this property is null, which is the default value, all fields with the format specified through the LoadSettings.ApplicationFieldFormat are loaded.

Syntax

public string[] ApplicationFieldTypeNames { get; set; }

Examples

The following example configures how a WordprocessingML template is loaded by using LoadSettings.ApplicationFieldTypeNames.

LoadSettings loadSettings = new();

loadSettings.ApplicationFieldTypeNames = new string[] { "CustomerName" };
if (loadSettings.ApplicationFieldTypeNames != null)
{
    Console.WriteLine("Load Settings: Application Field Type Names is available.");
}

textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);

Limitations

Microsoft Word and RTF only.