[Overview][Constants][Types][Classes][Index] Reference for unit 'fgl' (#rtl)

TFPGObjectList.IndexOf

Index of item

Declaration

Source position: fgl.pp line 191

public function TFPGObjectList.IndexOf(

  const Item: T

):Integer;

Arguments

Item

  

Item to search in the list.

Function result

Index of Item in the list or -1 if it is not in the list.

Description

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

Errors

None.

See also

TFPGObjectList.Items

  

Indexed access to objects in the list.

TFPGObjectList.Insert

  

Insert a new object in the list

TFPGObjectList.Add

  

Add new object of class T to the list.


Documentation generated on: Jun 23 2021