AddClone()

IShapeCollection::AddClone(System::SharedPtr<IShape>, float, float, float, float) method

Creates a copy of the specified shape and adds it to the end of the shape collection.

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::AddClone(System::SharedPtr<IShape> sourceShape, float x, float y, float width, float height)=0

Arguments

ParameterTypeDescription
sourceShapeSystem::SharedPtr<IShape>The shape 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.

IShapeCollection::AddClone(System::SharedPtr<IShape>, float, float) method

Creates a copy of the specified shape and adds it to the end of the shape collection. The new shape retains the width and height of the sourceShape .

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::AddClone(System::SharedPtr<IShape> sourceShape, float x, float y)=0

Arguments

ParameterTypeDescription
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.

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

Creates a copy of the specified shape and adds it to the end of the shape collection. The cloned shape retains the original\u2019s position and size.

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::AddClone(System::SharedPtr<IShape> sourceShape)=0

Arguments

ParameterTypeDescription
sourceShapeSystem::SharedPtr<IShape>The IShape to clone.

Return Value

The newly created IShape.

See Also