ApplicationFieldTypeNames Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property ApplicationFieldTypeNames As String()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);Dim loadSettings As New LoadSettings()
loadSettings.ApplicationFieldTypeNames = New String() { "CustomerName" }
If loadSettings.ApplicationFieldTypeNames IsNot Nothing Then
Console.WriteLine("Load Settings: Application Field Type Names is available.")
End If
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)Limitations
Microsoft Word and RTF only.