InsertClone

ShapeCollection.InsertClone method (1 of 3)

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)
Parameter Type Description
index Int32 Index of new shape.
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

Inserted shape.

See Also


ShapeCollection.InsertClone method (2 of 3)

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

Return Value

Inserted shape.

See Also


ShapeCollection.InsertClone method (3 of 3)

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)
Parameter Type Description
index Int32 Index of new shape.
sourceShape IShape Shape to clone.

Return Value

Inserted shape.

See Also