add_clone method

add_clone

Adds a copy of a specified shape to the end 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

New shape.

def add_clone(self, source_shape):
    ...
ParameterTypeDescription
source_shapeIShapeShape to clone.

add_clone

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

Returns

New shape.

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

add_clone

Adds a copy of a specified shape to the end of the collection.

Returns

New shape.

def add_clone(self, source_shape, x, y, width, height):
    ...
ParameterTypeDescription
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