Search for an instance of a certain class.
Source position: contnrs.pp line 62
public function TFPObjectList.FindInstanceOf( |
AClass: TClass; |
AExact: Boolean; |
AStartAt: Integer |
):Integer; |
AClass |
|
The class to look for. |
AExact |
|
Should the class match exact or nor. |
AStartAt |
|
Index to start the search at. |
The index of the first instance of the requested class.
FindInstanceOf will look through the instances in the list and will return the index of the first instance which is a descendent of class AClass if AExact is False. If AExact is true, then the instance should be of class AClass.
If no instance of the requested class is found, -1 is returned.
None.
|
Search for an object in the list. |