add_clone method

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):
    ...
ParameterTypeDescription
source_shapeIShapeThe 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):
    ...
ParameterTypeDescription
source_shapeIShapeThe shape to clone.
xfloatThe x-coordinate of the new shape’s frame, in points.
yfloatThe y-coordinate of the new 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):
    ...
ParameterTypeDescription
source_shapeIShapeThe shape to clone.
xfloatThe x-coordinate of the new shape’s frame, in points.
yfloatThe y-coordinate of the new shape’s frame, in points.
widthfloatThe width of the new shape’s frame, in points.
heightfloatThe height of the new shape’s frame, in points.

See Also