# 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 WPF
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > TextFieldEventArgs.TextField Property
- **488 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfieldeventargs/textfield-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfieldeventargs/textfield-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/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-wpf/reference/txtextcontrol/textfield/llms-full.txt), [DocumentTarget](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documenttarget/llms-full.txt), [DocumentLink](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentlink/llms-full.txt), [HypertextLink](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/hypertextlink/llms-full.txt), [PageNumberField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/pagenumberfield/llms-full.txt), [ApplicationField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/applicationfield/llms-full.txt), [CheckFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/llms-full.txt), [TextFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textformfield/llms-full.txt) or [SelectionFormField](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/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-wpf/reference/txtextcontrol/textfieldeventargs/llms-full.txt)
- **Next:** [TextFieldPosition Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfieldposition/enumeration/llms-full.txt)
