insert_clone method

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):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the cloned shape.
source_shapeIShapeThe 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):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the cloned shape.
source_shapeIShapeThe IShape to clone.
xfloatThe x-coordinate of the cloned shape’s frame, in points.
yfloatThe 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):
    ...
ParameterTypeDescription
indexintThe zero-based index at which to insert the cloned shape.
source_shapeIShapeThe IShape to clone.
xfloatThe x-coordinate of the cloned shape’s frame, in points.
yfloatThe y-coordinate of the cloned shape’s frame, in points.
widthfloatThe width of the cloned shape’s frame, in points.
heightfloatThe height of the cloned shape’s frame, in points.

See Also