insert_clone method

insert_clone

Inserts a copy of a specified shape to specified position of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the source_shape .

Returns

Inserted shape.

def insert_clone(self, index, source_shape):
    ...
ParameterTypeDescription
indexintIndex of new shape.
source_shapeIShapeShape to clone.

insert_clone

Inserts a copy of a specified shape to specified position of the collection. Width and Height of the new shape are equal to Width and Height of the source_shape .

Returns

Inserted shape.

def insert_clone(self, index, source_shape, x, y):
    ...
ParameterTypeDescription
indexintIndex of new shape.
source_shapeIShapeShape to clone.
xfloatX coordinate of a new shape.
yfloatY coordinate of a new shape.

insert_clone

Inserts a copy of a specified shape to specified position of the collection.

Returns

Inserted shape.

def insert_clone(self, index, source_shape, x, y, width, height):
    ...
ParameterTypeDescription
indexintIndex of new shape.
source_shapeIShapeShape to clone.
xfloatX coordinate of a new shape.
yfloatY coordinate of a new shape.
widthfloatWidth of a new shape.
heightfloatHeight of a new shape.

See Also