Beta Documentation - Subject to change.

Gets the index of a menu item in the list.

Syntax

Lua
function MenuItemList:IndexOf(item);

Parameters

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

Returns

Type: number
The index of the item in the list or -1 if it does not exist in the list.

Remarks

Gets the index of a menu item in the list.

See Also