Beta Documentation - Subject to change.

Sets the selected index.

Syntax

Lua
function ListBox:SetSelectedIndex(index);

Parameters

index
Type: number
The index to select.

Remarks

Sets the selected index. If the index is out of range, nothing will be selected.

See Also