InsertClone()

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

Inserts a copy of a specified shape to specified position of the collection.

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

Arguments

ParameterTypeDescription
indexint32_tIndex of new shape.
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

Inserted shape.

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

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

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

Arguments

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

Return Value

Inserted shape.

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

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

virtual System::SharedPtr<IShape> Aspose::Slides::IShapeCollection::InsertClone(int32_t index, System::SharedPtr<IShape> sourceShape)=0

Arguments

ParameterTypeDescription
indexint32_tIndex of new shape.
sourceShapeSystem::SharedPtr<IShape>Shape to clone.

Return Value

Inserted shape.

See Also