TextFieldEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Text
Field Event Args
- Event
Description
The TextFieldEventArgs class provides data for the TextControl.TextFieldClicked, TextControl.TextFieldCreated, TextControl.TextFieldDoubleClicked, TextControl.TextFieldDeleted, TextControl.TextFieldChanged, TextControl.TextFieldEntered and TextControl.TextFieldLeft events.
Syntax
public class TextFieldEventArgs : EventArgsPublic Class TextFieldEventArgs
Inherits EventArgsExamples
The following example uses TextFieldEventArgs.TextField while handling TextFieldClicked.
textControl.TextFieldClicked += (_, e) =>
{
e.TextField?.ScrollTo();
};AddHandler textControl.TextFieldClicked,
Sub(sender, e)
If e.TextField IsNot Nothing Then e.TextField.ScrollTo()
End SubMembers
Properties
| Property | Description |
|---|---|
| TextField | 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. |