TX Text Control .NET for Windows Forms

FormFieldEventArgs Class

Class|Introduced in 31.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Inherits
  1. EventArgs
  2. FormFieldEventArgs

Description

The FormFieldEventArgs class provides data for the TextControl.FormFieldSettingsChanged event, which occurs, when the name, the id and/or formatting attributes of a form field have been changed.

Syntax

public class FormFieldEventArgs : EventArgs

Examples

The following example uses FormFieldEventArgs.FormField while handling FormFieldSettingsChanged.

textControl.FormFieldSettingsChanged += (_, e) =>
{
    e.FormField?.ScrollTo();
};

Members

Properties

PropertyDescription
FormFieldGets an object that represents the form field which causes the event. It is of the type CheckFormField, TextFormField, SelectionFormField or DateFormField.