FormFieldSelectionChanged Event
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Occurs when the selected item of a SelectionFormField has been changed. The event handler receives an argument of type SelectionFormFieldEventArgs containing data related to this event. The event does not occur, when the SelectionFormField.SelectedIndex property has been used to change the item.
Syntax
public event SelectionFormFieldEventHandler FormFieldSelectionChanged;Public Event FormFieldSelectionChanged As SelectionFormFieldEventHandlerExamples
The following example records useful context when form field selection changed occurs.
textViewGenerator.FormFieldSelectionChanged += (sender, e) =>
{
Console.WriteLine($"Form Field Selection Changed at {DateTime.Now:u}");
};AddHandler textViewGenerator.FormFieldSelectionChanged,
Sub(sender, e)
Console.WriteLine($"Form Field Selection Changed at {DateTime.Now:u}")
End Sub