IList<T>.IndexOf Method

Definition

Returns the zero-based index of the first occurrence of a value.

Delphi
function IndexOf(const Value: T): Integer;

Parameters

Value
T

The value to locate in the list.

Returns

Integer

The zero-based index of the value if found; otherwise, -1.