IShapeCollectionIndexOf Method

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

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
int IndexOf(
	IShape shape
)

Parameters

shape
Type: Aspose.SlidesIShape
The shape to locate in the collection.

Return Value

Type: Int32
The zero-based index of the first occurrence of shape within the collection, if found; otherwise, -1.
See Also