TX Text Control .NET for Windows Forms

ApplicationFieldFormat Property

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

Description

Specifies the format of text fields which are imported. The property's value can be one of the ApplicationFieldFormat values.

Syntax

public ApplicationFieldFormat ApplicationFieldFormat { get; set; }

Members

ValueDescription
NoneDefault value. Textfields supported through other applications are not imported as ApplicationFields. Formfields are imported as TextControl FormFields.
MSWordFields which are supported and defined through Microsoft Word are imported as ApplicationFields. The LoadSettings.ApplicationFieldTypeNames property can be used to select particular types of fields.
MSWordTXFormFieldsFields which are supported and defined through Microsoft Word are imported as ApplicationFields with an exception of form fields. Form fields such as comboboxes, checkboxes and form textfields are imported as TextControl FormFields.
HighEditFields which are supported and defined through the Heiler HighEdit component are imported as ApplicationFields.

Examples

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

LoadSettings loadSettings = new();

loadSettings.ApplicationFieldFormat = ApplicationFieldFormat.MSWord;
Console.WriteLine($"Application Field Format used by Load Settings: {loadSettings.ApplicationFieldFormat}");

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

Limitations

Microsoft Word and RTF only.

Further Reading

  • Which MS Word Fields Are Supported and How to Handle Them? –