index_of method

index_of

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

Returns

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

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

See Also