# TextField Class

> An instance of the TextField class represents a text field in a Text Control document. A text field is a marked piece of text that has properties like text or a name. The TextControl class has several events that inform about different occurrences. For more information see the technical article Text Fields and Hypertext Links.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Derived:** `TXTextControl.ApplicationField`, `TXTextControl.DocumentLink`, `TXTextControl.FormField`, `TXTextControl.HypertextLink`, `TXTextControl.PageNumberField`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > TextField Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/#members)

---

## In This Section

- [TextField.Bounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/bounds-property/llms.txt): Gets the bounding rectangle of a text field. The bounding rectangle is the smallest rectangle which contains all characters of the field's text. The rectangle is given in twips with an origin at the upper left corner of the document.
- [TextField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/constructor/llms.txt): Creates a new instance of the TextField class.
- [TextField.ContainsInputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/containsinputposition-property/llms.txt): Returns true, if the Textfield contains the current text input position.
- [TextField.Deleteable Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/deleteable-property/llms.txt): Specifies whether a text field can be deleted by the end-user while a TX Text Control document is being edited. The default setting of this property is true.
- [TextField.DoubleClickEvent Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/doubleclickevent-property/llms.txt): Specifies whether a TextControl.TextFieldDoubleClicked event is raised, if the end-user doubleclicks the text field. If an event is raised, the normal double-click processing, which selects a single word in the text is suppressed. The default setting of this property is true.
- [TextField.DoubledInputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/doubledinputposition-property/llms.txt): Specifies whether a text field has a doubled input position in front of its first character and behind its last character. This enables an end-user to decide whether inserted text at these positions will belong to the text field or not. The default setting of this property is false. For all form fields to work properly this property is set to true and cannot be changed to false.
- [TextField.Editable Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/editable-property/llms.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. The default setting of this property is true.
- [TextField.FormattingBounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/formattingbounds-property/llms.txt): Gets the formatting rectangle of a text field. The formatting rectangle is the largest rectangle to which the area covered by the field can grow. The rectangle is given in twips with an origin at the upper left corner of the document.
- [TextField.HighlightColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/highlightcolor-property/llms.txt): Gets or sets the highlight color for the text field. The color's alpha value must be less than 255 (opaque) so that the text field's text remains visible. The default value is black with an alpha value of 60 (light gray).
- [TextField.HighlightMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/highlightmode-property/llms.txt): Gets or sets a value indicating when the text field is highlighted.
- [TextField.ID Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/id-property/llms.txt): Gets or sets an identifier for a text field. This identifier can be used to uniquely identify a text field.
- [TextField.IsSpellCheckingEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/isspellcheckingenabled-property/llms.txt): Specifies whether a text field's text is checked on misspelled words. The default setting of this property is true.
- [TextField.Length Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/length-property/llms.txt): Gets the number of characters in a text field.
- [TextField.Name Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/name-property/llms.txt): Relates a user-defined name to a text field. This can be any kind of text. This name can be used to uniquely identify a text field.
- [TextField.ScrollTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/scrollto-method/llms.txt): Sets the current input position to the beginning of a text field and scrolls it into the visible part of the document.
- [TextField.ShowActivated Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/showactivated-property/llms.txt): Obsolete. Specifies whether a text field toggles its background to gray, if the current input position is in the field. The default setting of this property is false. This property is obsolete and has been superseded by the HighlightColor and HighlightMode properties.
- [TextField.Start Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/start-property/llms.txt): Gets the first character position (one-based) of a text field.
- [TextField.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/text-property/llms.txt): Returns or sets the text which is contained within a text field. This property is not supported for the DocumentTarget class.

---

## Nearby

- **Previous:** [TextEditorException Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/texteditorexception/constructor/llms.txt)
- **Next:** [TextField.Bounds Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/bounds-property/llms.txt)
