FormFieldEventArgs Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
- Inherits
- Event
Args - Form
Field Event Args
- Event
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 : EventArgsPublic Class FormFieldEventArgs
Inherits EventArgsExamples
The following example uses FormFieldEventArgs.FormField while handling FormFieldSettingsChanged.
textControl.FormFieldSettingsChanged += (_, e) =>
{
e.FormField?.ScrollTo();
};AddHandler textControl.FormFieldSettingsChanged,
Sub(sender, e)
If e.FormField IsNot Nothing Then e.FormField.ScrollTo()
End SubMembers
Properties
| Property | Description |
|---|---|
| FormField | Gets an object that represents the form field which causes the event. It is of the type CheckFormField, TextFormField, SelectionFormField or DateFormField. |