[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Return index of an item in the collection.
Source position: objects.pp line 437
function TSortedCollection.IndexOf( |
Item: Pointer |
):Sw_Integer; virtual; |
IndexOfreturns the index of Itemin the collection. It searches for the object based on it's key. If duplicates are allowed, then it returns the index of last object that matches Item.
In case Itemis not found in the collection, -1 is returned.
For an example, see TCollection.IndexOf
None.
|
Search for item with given key. |
|
|
Compare two items in the collection. |