# TextFieldInfo Object

> The type of the text field object in TextFieldEventArgs or in other properties / methods returning static field information (or arrays thereof).

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 23.0
- **Path:** DS Server > Reference > JavaScript API > TextFieldInfo Object
- **1002 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/llms-full.txt

---

### Description

The type of the text field object in [TextFieldEventArgs](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldeventargs/llms-full.txt) or in other properties / methods returning static field information (or arrays thereof).

### Syntax

```javascript
{
   bounds: <Rectangle>,
   containsInputPosition: <boolean>,
   deleteable: <boolean>,
   doubledInputPosition: <boolean>,
   editable: <boolean>,
   formattingBounds: <Rectangle>,
   id: <number>,
   isSpellCheckingEnabled: <boolean>,
   length: <number>,
   name: <string>,
   showActivated: <boolean>,
   start: <number>,
   text: <string>,
   type: <string>
}
```

### Examples

The following example demonstrates `TextFieldInfo` in a practical document-editing workflow. The type of the text field object in TextFieldEventArgs or in other properties / methods returning static field information (or arrays thereof).

```javascript
function inspectTextFieldInfo(textFieldInfo) {
    console.log("bounds:", textFieldInfo.bounds);
    console.log("contains input position:", textFieldInfo.containsInputPosition);
    console.log("deleteable:", textFieldInfo.deleteable);
    console.log("doubled input position:", textFieldInfo.doubledInputPosition);
}
```

---

## In This Section

- [Javascript: TextFieldInfo.bounds Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/bounds-property/llms-full.txt): The bounding rectangle of a text field.
- [Javascript: TextFieldInfo.containsInputPosition Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/containsinputposition-property/llms-full.txt): Returns true if the Textfield contains the current text input position.
- [Javascript: TextFieldInfo.deleteable Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/deleteable-property/llms-full.txt): Specifies whether a text field can be deleted by the end-user while a TX Text Control document is being edited.
- [Javascript: TextFieldInfo.doubledInputPosition Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/doubledinputposition-property/llms-full.txt): Specifies whether a text field has a doubled input position in front of its first character and behind its last character.
- [Javascript: TextFieldInfo.editable Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/editable-property/llms-full.txt): Specifies whether the text of a text field can be changed by the end-user while a TX Text Control document is being edited.
- [Javascript: TextFieldInfo.formattingBounds Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/formattingbounds-property/llms-full.txt): The formatting rectangle of a text field.
- [Javascript: TextFieldInfo.id Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/id-property/llms-full.txt): The identifier of the text field.
- [Javascript: TextFieldInfo.isSpellCheckingEnabled Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/isspellcheckingenabled-property/llms-full.txt): Specifies whether a text field's text is checked on misspelled words.
- [Javascript: TextFieldInfo.length Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/length-property/llms-full.txt): The number of characters in the text field.
- [Javascript: TextFieldInfo.name Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/name-property/llms-full.txt): The text field's name.
- [Javascript: TextFieldInfo.showActivated Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/showactivated-property/llms-full.txt): Specifies whether a text field toggles its background to gray, if the current input position is in the field.
- [Javascript: TextFieldInfo.start Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/start-property/llms-full.txt): The 1-based first character position of the text field.
- [Javascript: TextFieldInfo.text Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/text-property/llms-full.txt): The text field's text content.
- [Javascript: TextFieldInfo.type Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/type-property/llms-full.txt): The field type ("APPLICATIONFIELD" or "TEXTFIELD").

---

## Nearby

- **Previous:** [Javascript: TextFieldEventArgs.textField Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldeventargs/textfield-property/llms-full.txt)
- **Next:** [Javascript: TextFieldInfo.bounds Property](https://docs.textcontrol.com/ds-server/reference/javascript/textfieldinfo/bounds-property/llms-full.txt)
