# Javascript: TXTextControl.TextField.length Property

> Obsolete. This property will be removed in one of the next versions. The number of characters in the text field.

> **Note:** This is deprecated and should not be used in new work.

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

---

### Description

`Obsolete. This property will be removed in one of the next versions.` The number of characters in the text field.

### Syntax

```javascript
<number> TXTextControl.TextField.length
```

### Examples

The following example demonstrates `TXTextControl.TextField.length` in a practical document-editing workflow. Obsolete. This property will be removed in one of the next versions. The number of characters in the text field.

```javascript
function inspectLength(textField) {
    const length = textField.length;
    console.log("length:", length);
}
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: TXTextControl.TextField.isSpellCheckingEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-textfield/isspellcheckingenabled-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.TextField.name Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-textfield/name-property/llms-full.txt)
