TX Text Control provides support for many field types including proprietary Text ╰ TX Text Control .NET for Windows Forms
╰ TXTextControl Namespace
╰ TextField Class
An instance of the TextField class represents a text field in a Text Control document. , MS Word compatible Application ╰ TX Text Control .NET for Windows Forms
╰ TXTextControl Namespace
╰ ApplicationField Class
The ApplicationField class supports text field formats of applications such as Microsoft Word. , Content Control and legacy MS Word compatible Form ╰ TX Text Control .NET for Windows Forms
╰ TXTextControl Namespace
╰ FormField Class
The FormField class is the base class of all form fields. .
When using fields from other applications such as MS Word, there are different options to handle these fields.
On loading a document, the Application ╰ TX Text Control .NET for Windows Forms
╰ TXTextControl Namespace
╰ LoadSettings Class
╰ ApplicationFieldFormat Property
Specifies the format of text fields which are imported. property can be used to specify how a field is imported. The following code shows how to load the document and to enable MS Word compatible fields:
TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings() { | |
ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord | |
}; | |
textControl1.Load("test.docx", TXTextControl.StreamType.WordprocessingML, ls); |
LoadSettings
When importing fields, 3 relevant options can be specified:
- None
Textfields supported through other applications are not imported as ApplicationFields. Formfields are imported as TextControl FormFields.
- MSWord
Fields 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.
- MSWordTXFormFields
Fields 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.
Field Overview
The table below shows how fields are imported based on the specified LoadSettings:
Field | Document Format | Imported as ( Load ╰ TXTextControl Namespace ╰ LoadSettings Class ╰ ApplicationFieldFormat Property Specifies the format of text fields which are imported. ) |
||
None | MSWord | MSWordTXFormFields | ||
TextField | InternalUnicodeFormat, InternalFormat | Text ╰ TXTextControl Namespace ╰ TextField Class An instance of the TextField class represents a text field in a Text Control document. |
N/A | N/A |
MergeField | MSWord, WordprocessingML, RichTextFormat | × | Application ╰ TXTextControl Namespace ╰ ApplicationField Class The ApplicationField class supports text field formats of applications such as Microsoft Word. |
Application ╰ TXTextControl Namespace ╰ ApplicationField Class The ApplicationField class supports text field formats of applications such as Microsoft Word. |
DOCVARIABLE | MSWord, WordprocessingML, RichTextFormat | × | Application ╰ TXTextControl Namespace ╰ ApplicationField Class The ApplicationField class supports text field formats of applications such as Microsoft Word. |
Application ╰ TXTextControl Namespace ╰ ApplicationField Class The ApplicationField class supports text field formats of applications such as Microsoft Word. |
Content Control | MSWord, WordprocessingML, RichTextFormat | Form ╰ TXTextControl Namespace ╰ FormField Class The FormField class is the base class of all form fields. |
Application ╰ TXTextControl Namespace ╰ ApplicationField Class The ApplicationField class supports text field formats of applications such as Microsoft Word. |
Form ╰ TXTextControl Namespace ╰ FormField Class The FormField class is the base class of all form fields. |
Legacy Form Fields | MSWord, WordprocessingML, RichTextFormat | Form ╰ TXTextControl Namespace ╰ FormField Class The FormField class is the base class of all form fields. |
Application ╰ TXTextControl Namespace ╰ ApplicationField Class The ApplicationField class supports text field formats of applications such as Microsoft Word. |
Form ╰ TXTextControl Namespace ╰ FormField Class The FormField class is the base class of all form fields. |