Beta Documentation - Subject to change.

Gets the selected index.

Syntax

Lua
function ListBox:GetSelectedIndex();

Returns

Type: number
The currently selected index or 0 if no item is selected.

Remarks

Gets the selected index. If nothing is selected this will return 0.

See Also