insert_clone method
Contents
[
Hide
]insert_clone
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.
Returns
The newly created IShape.
def insert_clone(self, index, source_shape):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index at which to insert the cloned shape. |
| source_shape | IShape | The IShape to clone. |
insert_clone
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 source_shape.
Returns
The newly created IShape.
def insert_clone(self, index, source_shape, x, y):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index at which to insert the cloned shape. |
| source_shape | IShape | The IShape to clone. |
| x | float | The x-coordinate of the cloned shape’s frame, in points. |
| y | float | The y-coordinate of the cloned shape’s frame, in points. |
insert_clone
Creates a copy of the specified shape and inserts it into the shape collection at the specified index.
Returns
The newly created IShape.
def insert_clone(self, index, source_shape, x, y, width, height):
...
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index at which to insert the cloned shape. |
| source_shape | IShape | The IShape to clone. |
| x | float | The x-coordinate of the cloned shape’s frame, in points. |
| y | float | The y-coordinate of the cloned shape’s frame, in points. |
| width | float | The width of the cloned shape’s frame, in points. |
| height | float | The height of the cloned shape’s frame, in points. |
See Also
- class
IShape - class
ShapeCollection - module
aspose.slides - library
Aspose.Slides