[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TList.IndexOf

Returns the index of a given pointer.

Declaration

Source position: classesh.inc line 210

public function TList.IndexOf(

  Item: Pointer

):Integer;

Description

IndexOfsearches for the pointer Itemin the list of pointers, and returns the index of the pointer, if found.

If no pointer with the value Itemwas found, -1 is returned.