Index | Collapse All Expand All

IndexOfItem Method
ListBox Class Members See Also

Beta Documentation - Subject to change.
Gets the index of an item in the list box.

# Syntax

Lua
    function ListBox:IndexOfItem(item);

#### Parameters

item
  Type: Control
  The item to get the index of.

#### Returns

Type: number
The index of the item if it is in the list box otherwise -1.

# Remarks

Gets the index of an item in the list box.

# See Also

- ListBox
- Turbine.UI