Determines if the specified Quadrilateral is in the collection and returns its index.
| Visual Basic |
|---|
Public Function IndexOf( _ ByVal pIQuadrilateral As Quadrilateral _ ) As Long |
- pIQuadrilateral
- A Quadrilateral object to search for in the collection.
A long value which represents a zero-based index of the first occurrence of it. If the given pIQuadrilateral is not found in the collection, -1 is returned.
This method searches the collection for a reference to the given pIQuadrilateral. If it finds a reference to it, it returns its index. If it cannot find a reference to it, -1 is returned. If the object is present more than once in the collection, the lowest index of a match is returned.