System.Classes.TList.IndexOfItem
Delphi
function IndexOfItem(Item: Pointer; Direction: TDirection): Integer;
C++
int __fastcall IndexOfItem(void * Item, System::Types::TDirection Direction);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TList |
Description
Returns the item's index.
Call IndexOfItem to determine the location of an item in the TList list, using a linear search. If the item is not found, -1 is returned.