InsertClone
Contents
[
Hide
]InsertClone(int, IShape, float, float, float, float)
Creates a copy of the specified shape and inserts it into the shape collection at the specified index.
public IShape InsertClone(int index, IShape sourceShape, float x, float y, float width,
float height)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which to insert the cloned shape. |
sourceShape | IShape | The IShape to clone. |
x | Single | The x-coordinate of the cloned shape’s frame, in points. |
y | Single | The y-coordinate of the cloned shape’s frame, in points. |
width | Single | The width of the cloned shape’s frame, in points. |
height | Single | The height of the cloned shape’s frame, in points. |
Return Value
The newly created IShape
.
See Also
- interface IShape
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertClone(int, IShape, float, float)
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.
public IShape InsertClone(int index, IShape sourceShape, float x, float y)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which to insert the cloned shape. |
sourceShape | IShape | The IShape to clone. |
x | Single | The x-coordinate of the cloned shape’s frame, in points. |
y | Single | The y-coordinate of the cloned shape’s frame, in points. |
Return Value
The newly created IShape
.
See Also
- interface IShape
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertClone(int, IShape)
Creates a copy of the specified shape and inserts it into the shape collection at the specified index. The cloned shape retains the original’s position and size.
public IShape InsertClone(int index, IShape sourceShape)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which to insert the cloned shape. |
sourceShape | IShape | The IShape to clone. |
Return Value
The newly created IShape
.
See Also
- interface IShape
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides