IndexOf()

IShapeCollection::IndexOf(System::SharedPtr<IShape>) method

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

virtual int32_t Aspose::Slides::IShapeCollection::IndexOf(System::SharedPtr<IShape> shape)=0

Arguments

ParameterTypeDescription
shapeSystem::SharedPtr<IShape>The shape to locate in the collection.

Return Value

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

See Also