
This property sets or returns the type of a marked text field. The chapter Technical Articles - Marked Text Fields - Special Types of Marked Text Fields describes all the types and the data belonging to these types. Type-related data must be set with the FieldTypeData property.
TXTextControl.FieldType(FieldId) [= FieldType]
| Parameter | Description | |
| FieldId | Identifies the field that is to be manipulated. Possible property values are listed in Constants. |
The following lists the possible property values:
| Constant | Description | |
| txFieldStandard (0) | Resets a field of a special type to a standard marked text field. | |
| txFieldExternalLink (1) | Defines the source of a hypertext link to a location outside of the document. The FieldTypeData property must be used to define where the link points to. | |
| txFieldInternalLink (2) | Defines the source of a hypertext link to a location in the same document.The FieldTypeData property must be used to define where the link points to. It must be the name of a marked text field that has the txFieldLinkTarget type. | |
| txFieldPageNumber (3) | This field displays the current page number. It can only be used in headers or footers. The FieldTypeData property can be used to define the starting number and its format. | |
| txFieldLinkTarget (4) | Defines a position in a document which is the target of a hypertext link. The FieldTypeData property must be used to define the name of this field. | |
| txFieldHighlight (5) | Defines a piece of text that can be highlighted. The FieldTypeData property must be used to define the color of the highlight. | |
| txFieldTopic (6) | Defines a position in a document that is the beginning of a topic. The FieldTypeData property must be used to define the number of the topic. | |
| txFieldMSWord (7) | Defines a Microsoft Word field. The FieldTypeData property must be used to define the field's type name and parameters. | |
| txFieldHighEdit (8) | Defines a Heiler HighEdit field. The FieldTypeData property must be used to define the field's type name and parameters. |
The types txFieldLinkTarget, txFieldPageNumber and txFieldTopic can only be set when the marked text field has no text.
| FieldId: | Integer |
| Property value: | Integer |
Run time only.