Class DropdownList
Combo box control
public class DropdownList : ButtonBase, ICloneable
- Inheritance
-
objectDropdownList
- Implements
- Inherited Members
Constructors
DropdownList()
public DropdownList()
Properties
Items
A list of strings selectable in the control
public MonitoredCollection<string> Items { get; }
Property Value
OnChanged
A Lua script to execute when the control's value has changed
[FileType("Lua")]
public string? OnChanged { get; set; }
Property Value
SelectedItem
The currently selected item in the control
public string SelectedItem { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this instance.
public override Control Clone()
Returns
CloneDropdownList()
Creates a deep copy of this DropdownList instance.
public DropdownList CloneDropdownList()
Returns
- DropdownList
The new copy of the DropdownList.
CloneFromTo(DropdownList, DropdownList)
Copies all members declared by DropdownList from one instance to another.
protected static void CloneFromTo(DropdownList from, DropdownList to)
Parameters
fromDropdownListtoDropdownList