Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / ShapeCollection Class / Add Method / Add(Single,Single,String) Method
The shape width, in points.
The shape height, in points.
If not null, a TextFrame with this text is added to the shape.

In This Topic
    Add(Single,Single,String) Method
    In This Topic
    Inserts a new GeometryType.Rectangle Shape with a specified size and text into this collection at the InsertLocation.End location.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal width As System.Single, _
       ByVal height As System.Single, _
       Optional ByVal text As System.String _
    ) As Shape
    public Shape Add( 
       System.float width,
       System.float height,
       System.string text
    )

    Parameters

    width
    The shape width, in points.
    height
    The shape height, in points.
    text
    If not null, a TextFrame with this text is added to the shape.

    Return Value

    The added Shape.
    See Also