# Text Fields

> Insert, find, highlight and delete marked text fields in TXTextControl with FieldInsert, FieldCurrent and FieldText and handle FieldClicked and FieldEntered.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Text Fields
- **1481 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms-full.txt

---

Marked text fields are ranges of text in a `TXTextControl` document that carry an identifier and can hold data of their own. The members below insert, find, delete and highlight fields, read and set their text and data and report when the user creates, clicks, enters or leaves a field.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.FieldAtInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldatinputpos-property/llms-full.txt) | Returns the field identifier of the field containing the input position. |
| [`TXTextControl.FieldChangeable`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldchangeable-property/llms-full.txt) | Specifies if the contents of a marked text field can be changed by the user. |
| [`TXTextControl.FieldCurrent`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldcurrent-property/llms-full.txt) | Returns or sets the identifier of the current marked text field for the Fieldxxx properties, methods and events. |
| [`TXTextControl.FieldData`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddata-property/llms-full.txt) | This property relates numeric or string data to a marked text field. |
| [`TXTextControl.FieldDeleteable`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddeleteable-property/llms-full.txt) | Specifies whether a marked text field can be deleted by the user. |
| [`TXTextControl.FieldDescriptiveText`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddescriptivetext-property/llms-full.txt) | Defines a descriptive text for a hyperlink or form field. |
| [`TXTextControl.FieldEditAttr`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldeditattr-property/llms-full.txt) | This property returns or sets attributes for advanced editing inside marked text fields. |
| [`TXTextControl.FieldEnd`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldend-property/llms-full.txt) | Returns the end position of a marked text field. |
| [`TXTextControl.FieldHighlightColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlightcolor-property/llms-full.txt) | This property returns or sets the highlight color of a text field. |
| [`TXTextControl.FieldHighlightMode`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlightmode-property/llms-full.txt) | This property returns or sets the highlight mode of a text field. |
| [`TXTextControl.FieldHighlightTransparency`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlighttransparency-property/llms-full.txt) | This property returns or sets the transparency of a text field's highlight color. |
| [`TXTextControl.FieldLinkTargetMarkers`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldlinktargetmarkers-property/llms-full.txt) | Gets or sets a value indicating that markers for hypertext targets are shown or not. |
| [`TXTextControl.FieldPosX`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldposx-property/llms-full.txt) | Returns the horizontal position of a marked text field. |
| [`TXTextControl.FieldPosY`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldposy-property/llms-full.txt) | Returns the vertical position of a marked text field. |
| [`TXTextControl.FieldStart`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldstart-property/llms-full.txt) | Specifies the start position of a marked text field. |
| [`TXTextControl.FieldText`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldtext-property/llms-full.txt) | Returns or sets the text which is contained within a marked text field. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.FieldDelete`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddelete-method/llms-full.txt) | Deletes the marked text field specified by the [FieldCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldcurrent-property/llms-full.txt) property, or changes it to simple text. |
| [`TXTextControl.FieldGoto`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldgoto-method/llms-full.txt) | Sets the current input position to the beginning of the specified marked text field and scrolls the text so that this position is at the top of the control's visible text. |
| [`TXTextControl.FieldInsert`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldinsert-method/llms-full.txt) | Inserts a new marked text field at the current caret position. |
| [`TXTextControl.FieldNext`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldnext-method/llms-full.txt) | This method returns the identifier of the marked text field that follows the specified field in the `TXTextControl`'s current text. |
| [`TXTextControl.FieldSetInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldsetinputpos-method/llms-full.txt) | If the current text input position is a position at the beginning or at the end of a marked text field with a doubled input position, this method can be used to define whether the position is inside or outside the field. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.FieldChanged`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldchanged-event/llms-full.txt) | Occurs when the text of a marked text field has been changed. |
| [`TXTextControl.FieldClicked`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldclicked-event/llms-full.txt) | Occurs when a marked text field has been clicked on. |
| [`TXTextControl.FieldCreated`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldcreated-event/llms-full.txt) | Occurs when a marked text field has been pasted from the clipboard. |
| [`TXTextControl.FieldDblClicked`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddblclicked-event/llms-full.txt) | Occurs when a marked text field has been double-clicked on. |
| [`TXTextControl.FieldDeleted`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddeleted-event/llms-full.txt) | Occurs when a marked text field has been deleted. |
| [`TXTextControl.FieldEntered`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldentered-event/llms-full.txt) | Occurs when the current input position, indicated by the caret, has been moved to a position that belongs to a marked text field. |
| [`TXTextControl.FieldLeft`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldleft-event/llms-full.txt) | Occurs when the current input position indicated by the caret has been moved to a position that does not belong to the marked text field at the previous input position. |
| [`TXTextControl.FieldSetCursor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldsetcursor-event/llms-full.txt) | Occurs when the cursor is moved over a marked text field. |

### Related Pages

- [Form Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/form-fields/llms-full.txt): text fields, check boxes, combo boxes, drop-down lists and date fields in forms.
- [Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/hypertext-links/llms-full.txt): link targets and hypertext link fields.
- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt): work with marked text fields.

---

## Nearby

- **Previous:** [Scrolling](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/scrolling/llms-full.txt)
- **Next:** [Form Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/form-fields/llms-full.txt)
