TFPObjectList.IndexOf¶
Search for an object in the list.
Declaration¶
Source position: contnrs.pp line 61
public
function TFPObjectList.IndexOf(AObject: TObject) : Integer;
Description¶
IndexOf searches for the presence of AObject in the list, and returns the location (index) in the list. The index is 0-based, and -1 is returned if AObject was not found in the list.
Errors¶
None.
See also¶
| Name | Description |
|---|---|
| TFPObjectList.Items | Indexed access to the elements of the list. |
| TFPObjectList.Remove | Remove an item from the list. |
| TFPObjectList.Extract | Extract an object from the list. |