AddClone()

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

Adds a copy of a specified shape to the end of the collection.

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

Arguments

ParameterTypeDescription
sourceShapeSystem::SharedPtr<IShape>Shape to clone.
xfloatX coordinate of a new shape.
yfloatY coordinate of a new shape.
widthfloatWidth of a new shape.
heightfloatHeight of a new shape.

Return Value

New shape.

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

Adds a copy of a specified shape to the end of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape .

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

Arguments

ParameterTypeDescription
sourceShapeSystem::SharedPtr<IShape>Shape to clone.
xfloatX coordinate of a new shape.
yfloatY coordinate of a new shape.

Return Value

New shape.

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

Adds a copy of a specified shape to the end of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the sourceShape .

System::SharedPtr<IShape> Aspose::Slides::ShapeCollection::AddClone(System::SharedPtr<IShape> sourceShape) override

Arguments

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

Return Value

New shape.

See Also