# Javascript: TXTextControl.IncludeTextField.textFormat Property

> Specifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.IncludeTextField.textFormat Property
- **209 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/textformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/textformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/textformat-property/llms-full.txt

---

### Description

Specifies the text format of the field. Possible values are defined in [TXTextControl.MergeFieldTextFormat](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/mergefieldtextformat-enumeration/llms-full.txt).

### Syntax

```javascript
<MergeFieldTextFormat> TXTextControl.IncludeTextField.textFormat
```

### Examples

The following example demonstrates `TXTextControl.IncludeTextField.textFormat` in a practical document-editing workflow. It specifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.

```javascript
function inspectTextFormat(includeTextField) {
    const textFormat = includeTextField.textFormat;
    console.log("text format:", textFormat);
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.IncludeTextField.text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/text-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.init Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/init-method/llms-full.txt)
