Syntax
Lua |
---|
function ListBox:IndexOfItem(item); |
Parameters
- item
-
Type:
Control
The item to get the index of.
Returns
Type: numberThe index of the item if it is in the list box otherwise -1.
Remarks
Gets the index of an item in the list box.