API:System.Contnrs.TClassList.IndexOfItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IndexOfItem(AClass: TClass; ADirection: TList.TDirection): Integer; inline;

C++

HIDESBASE int __fastcall IndexOfItem(System::TClass AClass, System::Types::TDirection ADirection);

Properties

Type Visibility Source Unit Parent
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TClassList

Description

Returns the item's index.

System.Contnrs.TClassList.IndexOfItem inherits from System.Classes.TList.IndexOfItem. All content below this line refers to System.Classes.TList.IndexOfItem.

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.

See Also