InsertClone()

ShapeCollection::InsertClone(int32_t, System::SharedPtr<IShape>, float, float, float, float) method

Creates a copy of the specified shape and inserts it into the shape collection at the specified index.

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::InsertClone(int32_t index, System::SharedPtr<IShape> sourceShape, float x, float y, float width, float height) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the cloned shape.
sourceShapeSystem::SharedPtr<IShape>The IShape to clone.
xfloatThe x-coordinate of the cloned shape\u2019s frame, in points.
yfloatThe y-coordinate of the cloned shape\u2019s frame, in points.
widthfloatThe width of the cloned shape\u2019s frame, in points.
heightfloatThe height of the cloned shape\u2019s frame, in points.

Return Value

The newly created IShape.

ShapeCollection::InsertClone(int32_t, System::SharedPtr<IShape>, float, float) method

Creates a copy of the specified shape and inserts it into the shape collection at the specified index. The new shape retains the width and height of the sourceShape .

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::InsertClone(int32_t index, System::SharedPtr<IShape> sourceShape, float x, float y) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the cloned shape.
sourceShapeSystem::SharedPtr<IShape>The IShape to clone.
xfloatThe x-coordinate of the cloned shape\u2019s frame, in points.
yfloatThe y-coordinate of the cloned shape\u2019s frame, in points.

Return Value

The newly created IShape.

ShapeCollection::InsertClone(int32_t, System::SharedPtr<IShape>) method

Creates a copy of the specified shape and inserts it into the shape collection at the specified index. The cloned shape retains the original\u2019s position and size.

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::InsertClone(int32_t index, System::SharedPtr<IShape> sourceShape) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which to insert the cloned shape.
sourceShapeSystem::SharedPtr<IShape>The IShape to clone.

Return Value

The newly created IShape.

See Also