InsertClone

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

Inserts a copy of a specified shape to specified position of the collection.

public IShape InsertClone(int index, IShape sourceShape, float x, float y, float width, 
    float height)
ParameterTypeDescription
indexInt32Index of new shape.
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

Inserted shape.

See Also


InsertClone(int, IShape, float, float)

Inserts a copy of a specified shape to specified position of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape.

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

Return Value

Inserted shape.

See Also


InsertClone(int, IShape)

Inserts a copy of a specified shape to specified position 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 InsertClone(int index, IShape sourceShape)
ParameterTypeDescription
indexInt32Index of new shape.
sourceShapeIShapeShape to clone.

Return Value

Inserted shape.

See Also