Class ListBox
List box control
public class ListBox : Control, ICloneable
- Inheritance
-
objectListBox
- Implements
- Inherited Members
Constructors
ListBox()
public ListBox()
Properties
Items
A list of strings selectable in the control
public MonitoredCollection<string> Items { get; }
Property Value
OnDoubleClick
A Lua script to execute when the user double-clicks onto an entry
[FileType("Lua")]
public string? OnDoubleClick { get; set; }
Property Value
OnSelection
A Lua script to execute when the user selects an entry
[FileType("Lua")]
public string? OnSelection { get; set; }
Property Value
SelectedItem
The currently selected item in the control
public string SelectedItem { get; set; }
Property Value
Style
The style of the list box
public ListBoxStyle Style { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this instance.
public override Control Clone()
Returns
CloneFromTo(ListBox, ListBox)
Copies all members declared by ListBox from one instance to another.
protected static void CloneFromTo(ListBox from, ListBox to)
Parameters
CloneListBox()
Creates a deep copy of this ListBox instance.
public ListBox CloneListBox()