index_of method

index_of

Returns the zero-based index of the first occurrence of a shape in the collection.

Returns

The zero-based index of the first occurrence of shape within the collection, if found; otherwise, -1.

def index_of(self, shape):
    ...
ParameterTypeDescription
shapeIShapeThe shape to locate in the collection.

See Also