AddClone

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

Creates a copy of the specified shape and adds it to the end of the shape collection.

public IShape AddClone(IShape sourceShape, float x, float y, float width, float height)
ParameterTypeDescription
sourceShapeIShapeThe shape to clone.
xSingleThe x-coordinate of the new shape’s frame, in points.
ySingleThe y-coordinate of the new shape’s frame, in points.
widthSingleThe width of the new shape’s frame, in points.
heightSingleThe height of the new shape’s frame, in points.

Return Value

The newly created IShape.

See Also


AddClone(IShape, float, float)

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

public IShape AddClone(IShape sourceShape, float x, float y)
ParameterTypeDescription
sourceShapeIShapeThe shape to clone.
xSingleThe x-coordinate of the new shape’s frame, in points.
ySingleThe y-coordinate of the new shape’s frame, in points.

Return Value

The newly created IShape.

See Also


AddClone(IShape)

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.

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

Return Value

The newly created IShape.

See Also