ListBox

Inherits from ListBoxBase.

Implements a simple text based list or drop down.

Properties

Index: Number = null

Sets or gets the selected index of the item. Groups are not counted in the indexing and are ignored.

A value of null means no currently selected item.

Index is 0 based.

Text: string = null

If read will return the text of the currently selected item, or null if no item is selected.

If set, will set the selected item with the specified text. If more than one item with a matching value exists, the first one will be selected. Comparison is case sensitive.

Value: string = null

If read will return the value of the currently selected item, or null if no item is selected. If no value exists for the selected item, null will also be returned.

If set, will set the selected item with the specified value. If more than one item with a matching value exists, the first one will be selected. Comparison is case sensitive.

Try It