TX Text Control .NET Server

TextFieldEventArgs Class

Class
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll
Inherits
  1. EventArgs
  2. TextFieldEventArgs

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 : EventArgs

Examples

The following example uses TextFieldEventArgs.TextField while handling TextFieldClicked.

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

Members

Properties

PropertyDescription
TextFieldGets 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.