add_clone method
Contents
[
Hide
]add_clone
Creates a copy of the specified shape and adds it to the end of the shape collection. The cloned shape retains the original’s position and size.
Returns
The newly created IShape.
def add_clone(self, source_shape):
...
| Parameter | Type | Description |
|---|---|---|
| source_shape | IShape | The IShape to clone. |
add_clone
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 source_shape.
Returns
The newly created IShape.
def add_clone(self, source_shape, x, y):
...
| Parameter | Type | Description |
|---|---|---|
| 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. |
add_clone
Creates a copy of the specified shape and adds it to the end of the shape collection.
Returns
The newly created IShape.
def add_clone(self, source_shape, x, y, width, height):
...
| Parameter | Type | Description |
|---|---|---|
| source_shape | IShape | The shape 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
IShapeCollection - module
aspose.slides - library
Aspose.Slides