AddClone

AddClone(IShape, float, float, float, float)

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

public IShape AddClone(IShape sourceShape, float x, float y, float width, float height)
ParameterTypeDescription
sourceShapeIShapeShape to clone.
xSingleX coordinate of a new shape.
ySingleY coordinate of a new shape.
widthSingleWidth of a new shape.
heightSingleHeight of a new shape.

Return Value

New shape.

See Also


AddClone(IShape, float, float)

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 sourceShape.

public IShape AddClone(IShape sourceShape, float x, float y)
ParameterTypeDescription
sourceShapeIShapeShape to clone.
xSingleX coordinate of a new shape.
ySingleY coordinate of a new shape.

Return Value

New shape.

See Also


AddClone(IShape)

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 sourceShape.

public IShape AddClone(IShape sourceShape)
ParameterTypeDescription
sourceShapeIShapeShape to clone.

Return Value

New shape.

See Also