# TextFieldEventArgs Class

> The TextFieldEventArgs class provides data for the TextControl.TextFieldClicked, TextControl.TextFieldCreated, TextControl.TextFieldDoubleClicked, TextControl.TextFieldDeleted, TextControl.TextFieldChanged, TextControl.TextFieldEntered and TextControl.TextFieldLeft events.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextFieldEventArgs Class
- **605 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/llms-full.txt

---

### Description

The TextFieldEventArgs class provides data for the [TextControl.TextFieldClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfieldclicked-event/llms-full.txt), [TextControl.TextFieldCreated](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfieldcreated-event/llms-full.txt), [TextControl.TextFieldDoubleClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfielddoubleclicked-event/llms-full.txt), [TextControl.TextFieldDeleted](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfielddeleted-event/llms-full.txt), [TextControl.TextFieldChanged](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfieldchanged-event/llms-full.txt), [TextControl.TextFieldEntered](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfieldentered-event/llms-full.txt) and [TextControl.TextFieldLeft](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfieldleft-event/llms-full.txt) events.

### Syntax

```csharp
public class TextFieldEventArgs : EventArgs
```

```vbnet
Public Class TextFieldEventArgs
    Inherits EventArgs
```

### 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
```

---

## In This Section

- [TextFieldEventArgs.TextField Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/textfield-property/llms-full.txt): 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.

---

## Nearby

- **Previous:** [TextFieldCollectionBase.SyncRoot Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldcollectionbase/syncroot-property/llms-full.txt)
- **Next:** [TextFieldEventArgs.TextField Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldeventargs/textfield-property/llms-full.txt)
