# FieldHighlightMode Property

> Returns or sets how the text field with the given FieldId is highlighted: never (1), only when it contains the input position (2) or always (3), at run time.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > FieldHighlightMode Property
- **315 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlightmode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlightmode-property/llms.txt
- **LLMs-Full URL:** 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. Text fields can be highlighted always, never or only when the field is activated, which means that it contains the current text input position.

Introduced: 27.0.

### Syntax

```vbscript
TXTextControl.FieldHighlightMode(FieldId) [= Mode]
```

### Parameters

| Parameter | Description |
|---|---|
| FieldId | Identifies the field which highlight mode is returned or set. |

### Constants

The following lists the possible property values:

| Constant | Description |
|---|---|
| 1 - txNever | The text field is not highlighted. |
| 2 - txActivated | The text field is only highlighted when it contains the current text input position. |
| 3 - txAlways | The text field is always highlighted. |

### Data Types

| Name | Data type |
|---|---|
| FieldId | Integer |
| Property value | Integer |

### Limitations

Run time only.

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [FieldHighlightColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlightcolor-property/llms-full.txt)
- [FieldHighlightTransparency Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlighttransparency-property/llms-full.txt)
- [Programming Category: Text Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms-full.txt)

---

## Nearby

- **Previous:** [FieldHighlightColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlightcolor-property/llms-full.txt)
- **Next:** [FieldHighlightTransparency Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldhighlighttransparency-property/llms-full.txt)
