Skip to content

TFPGInterfacedObjectList.IndexOf

Index of object

Declaration

Source position: fgl.pp line 234

public 
  function IndexOf(const Item: T) : Integer;

Description

IndexOf returns the index of Item in the list, or -1 if the object does not appear in the list.

Errors

None.

See also

Name Description
TFPGInterfacedObjectList.Add Add new object of class T to the list.
TFPGInterfacedObjectList.Insert Insert a new object in the list
TFPGInterfacedObjectList.Items Indexed access to objects in the list.