IndexOf()

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

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

int32_t Aspose::Slides::ShapeCollection::IndexOf(System::SharedPtr<IShape> shape) override

Arguments

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

Return Value

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

See Also