TComponentList.IndexOf function
Search for an instance in the list.
Declaration
function IndexOf(AComponent: TComponent): IntegerArguments
AComponent | Instance to look for. |
Function result
Index of the found instance.
Description
IndexOf searches for an instance in the list and returns it's
position in the list. The position is zero-based. If no instance is found,
-1 is returned.
IndexOf just overrides the implementation of the parent class so
it accepts only
TComponent instances. It introduces no new
behaviour.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
