InsertClone

InsertClone(int, IShape, float, float, float, float)

Creates a copy of the specified shape and inserts it into the shape collection at the specified index.

public IShape InsertClone(int index, IShape sourceShape, float x, float y, float width, 
    float height)
ParameterTypeDescription
indexInt32The zero-based index at which to insert the cloned shape.
sourceShapeIShapeThe IShape to clone.
xSingleThe x-coordinate of the cloned shape’s frame, in points.
ySingleThe y-coordinate of the cloned shape’s frame, in points.
widthSingleThe width of the cloned shape’s frame, in points.
heightSingleThe height of the cloned shape’s frame, in points.

Return Value

The newly created IShape.

See Also


InsertClone(int, IShape, float, float)

Creates a copy of the specified shape and inserts it into the shape collection at the specified index. The new shape retains the width and height of the sourceShape.

public IShape InsertClone(int index, IShape sourceShape, float x, float y)
ParameterTypeDescription
indexInt32The zero-based index at which to insert the cloned shape.
sourceShapeIShapeThe IShape to clone.
xSingleThe x-coordinate of the cloned shape’s frame, in points.
ySingleThe y-coordinate of the cloned shape’s frame, in points.

Return Value

The newly created IShape.

See Also


InsertClone(int, IShape)

Creates a copy of the specified shape and inserts it into the shape collection at the specified index. The cloned shape retains the original’s position and size.

public IShape InsertClone(int index, IShape sourceShape)
ParameterTypeDescription
indexInt32The zero-based index at which to insert the cloned shape.
sourceShapeIShapeThe IShape to clone.

Return Value

The newly created IShape.

See Also