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):
...
| Parameter | Type | Description |
|---|---|---|
| shape | IShape | The shape to locate in the collection. |
See Also
- class
IShape - class
ShapeCollection - module
aspose.slides - library
Aspose.Slides