ToggleSelectionChangedEventArgs
Namespace: Hex1b.Events
Assembly: Hex1b.dll
Event arguments for toggle switch selection change events.
csharp
public sealed class ToggleSelectionChangedEventArgs : WidgetEventArgs<ToggleSwitchWidget, ToggleSwitchNode>Inheritance
Object → WidgetEventArgs → WidgetEventArgs<ToggleSwitchWidget, ToggleSwitchNode> → ToggleSelectionChangedEventArgs
Constructors
ToggleSelectionChangedEventArgs(ToggleSwitchWidget, ToggleSwitchNode, InputBindingActionContext, int, string)
Parameters:
widget(ToggleSwitchWidget):node(ToggleSwitchNode):context(InputBindingActionContext):selectedIndex(Int32):selectedOption(String):
csharp
public ToggleSelectionChangedEventArgs(ToggleSwitchWidget widget, ToggleSwitchNode node, InputBindingActionContext context, int selectedIndex, string selectedOption)Properties
SelectedIndex
The index of the newly selected option.
Returns: Int32
csharp
public int SelectedIndex { get; }SelectedOption
The text of the newly selected option.
Returns: String
csharp
public string SelectedOption { get; }