TXTextControl.Drawing.ShapeCollection.Add Method

Adds an object of the type Shape to the collection.

Add(Shape)

Adds an object of the type Shape to the collection. The shape is drawn at its defined location with its defined size.

[C#]
public int Add(Drawing.Shape shape);
[Visual Basic]
Public Function Add(shape As Drawing.Shape) As Integer
Parameter Description
shape

Specifies the shape.

Add(Shape, AddStyle)

Adds an object of the type Shape to the collection. The addStyle parameter determines the location and size in which the shape is added.

[C#]
public int Add(Drawing.Shape shape, Drawing.ShapeCollection.AddStyle addStyle);
[Visual Basic]
Public Function Add(shape As Drawing.Shape, addStyle As Drawing.ShapeCollection.AddStyle) As Integer
Parameter Description
shape

Specifies the shape.

addStyle

Specifies style how to add the shape to the collection.

See Also