Class DropDown<T>
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
A drop-down list.
public class DropDown<T> : DropDownBase, IDropDownBase, IValidationWidget, IDropDown<T>, IOptionWidget<T>
Type Parameters
T
- Inheritance
-
DropDown<T>
- Implements
-
IDropDown<T>
- Inherited Members
- Extension Methods
Constructors
- DropDown()
Initializes a new instance of the DropDown class.
- DropDown(IEnumerable<Option<T>>, Option<T>)
Initializes a new instance of the DropDown class.
- DropDown(IEnumerable<T>)
Initializes a new instance of the DropDown class.
- DropDown(IEnumerable<T>, T)
Initializes a new instance of the DropDown class.
Properties
- Selected
Gets or sets the value of the currently selected option.
- SelectedOption
Gets or sets the currently selected option as an Option<T>.
- Values
Gets or sets the collection of available values of type
T
.
Methods
- AddOption(Option<T>)
Adds a new option to the list of available options.
- AddOption(T)
Adds a new value to the list of available options.
This value is represented in the dropdown by its ToString() counterpart.
- LoadResult(IUIResults)
Load any changes made through user interaction.
- RaiseResultEvents()
Raises zero or more events of the widget. This method is called after LoadResult(IUIResults) was called on all widgets.
- RemoveOption(Option<T>)
Removes the specified option from the list of available options.
- RemoveOption(T)
Removes all options representing the specified value from the list of available options.
- SetOptions(IEnumerable<Option<T>>)
Replaces the current list of options with the specified collection of Option<T> objects.
- SetOptions(IEnumerable<T>)
Replaces the current list of options with the specified collection of values of type
T
.
Events
- Changed
Triggered when a different option is selected. WantsOnChange will be set to true when this event is subscribed to.