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

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

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.
location
The target InsertLocation for the insertion.

Return Value

The inserted Shape.
See Also