TX Text Control .NET for WPF

TextFieldEventArgs Class

Class
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
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.

Further Reading

  • Removing TextFields Completely when the User Removes Their Text –
  • Casting TextField Derivatives –