# TextFieldEventArgs.TextField Property

> Gets an object that represents the text field which causes the event. It is of the type TextField, DocumentTarget, DocumentLink, HypertextLink, PageNumberField, ApplicationField, CheckFormField, TextFormField or SelectionFormField. If the text field has been deleted, only the ID and the Name property are available.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextFieldEventArgs.TextField Property
- **496 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/textfield-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/textfield-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/textfield-property/llms-full.txt

---

### Description

Gets an object that represents the text field which causes the event. It is of the type [TextField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/llms-full.txt), [DocumentTarget](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/llms-full.txt), [DocumentLink](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documentlink/llms-full.txt), [HypertextLink](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/hypertextlink/llms-full.txt), [PageNumberField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagenumberfield/llms-full.txt), [ApplicationField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/applicationfield/llms-full.txt), [CheckFormField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/checkformfield/llms-full.txt), [TextFormField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textformfield/llms-full.txt) or [SelectionFormField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfield/llms-full.txt). If the text field has been deleted, only the ID and the Name property are available.

### Syntax

```csharp
public TextField TextField { get; }
```

```vbnet
Public ReadOnly Property TextField As TextField
```

### Examples

The following example uses `TextFieldEventArgs.TextField` while handling `TextFieldClicked`.

```csharp
textControl.TextFieldClicked += (_, e) =>
{
    e.TextField?.ScrollTo();
};
```

```vbnet
AddHandler textControl.TextFieldClicked,
    Sub(sender, e)
        If e.TextField IsNot Nothing Then e.TextField.ScrollTo()
    End Sub
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFieldEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/llms-full.txt)
- **Next:** [TextFieldPosition Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldposition/enumeration/llms-full.txt)
