Constructor DropDown
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
DropDown()
Initializes a new instance of the DropDown class.
public DropDown()
DropDown(IEnumerable<T>)
Initializes a new instance of the DropDown class.
public DropDown(IEnumerable<T> options)
Parameters
options
IEnumerable<T>Values that can be selected, every value is visualized in the dropdown by its ToString() counterpart.
Exceptions
- ArgumentNullException
When options is null.
DropDown(IEnumerable<T>, T)
Initializes a new instance of the DropDown class.
public DropDown(IEnumerable<T> options, T selected)
Parameters
options
IEnumerable<T>Values that can be selected, every value is visualized in the dropdown by its ToString() counterpart.
selected
TDefault selected value.
Exceptions
- ArgumentNullException
When options is null.
DropDown(IEnumerable<Option<T>>, Option<T>)
Initializes a new instance of the DropDown class.
public DropDown(IEnumerable<Option<T>> options, Option<T> selected = null)
Parameters
options
IEnumerable<Option<T>>Options to be displayed in the list.
selected
Option<T>The selected item in the list.
Exceptions
- ArgumentNullException
When options is null.