AddClone

IShapeCollection.AddClone method (1 of 3)

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)
Parameter Type Description
sourceShape IShape Shape to clone.
x Single X coordinate of a new shape.
y Single Y coordinate of a new shape.
width Single Width of a new shape.
height Single Height of a new shape.

Return Value

New shape.

See Also


IShapeCollection.AddClone method (2 of 3)

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)
Parameter Type Description
sourceShape IShape Shape to clone.
x Single X coordinate of a new shape.
y Single Y coordinate of a new shape.

Return Value

New shape.

See Also


IShapeCollection.AddClone method (3 of 3)

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)
Parameter Type Description
sourceShape IShape Shape to clone.

Return Value

New shape.

See Also