IndexOf

Searches for the first occurrence of a value in a list.

int IndexOf(
    item     // the search value
   );

Parameters

item

[in]  The searched value.

Return Value

Returns the index of the first found element. If the value is not found, returns -1.