# Javascript: TXTextControl.IncludeTextField.preserveFormatting Property

> Specifies whether the field's formatting should be preserved.

- **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.preserveFormatting Property
- **182 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/preserveformatting-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/preserveformatting-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-includetextfield/preserveformatting-property/llms-full.txt

---

### Description

Specifies whether the field's formatting should be preserved.

### Syntax

```javascript
<boolean> TXTextControl.IncludeTextField.preserveFormatting
```

### Examples

The following example demonstrates `TXTextControl.IncludeTextField.preserveFormatting` in a practical document-editing workflow. It specifies whether the field's formatting should be preserved.

```javascript
function inspectPreserveFormatting(includeTextField) {
    const preserveFormatting = includeTextField.preserveFormatting;
    console.log("preserve formatting:", preserveFormatting);
}
```

---

## Nearby

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