Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddShapeToCell Method
Specifies the type of IShape to create.
The row index of the upper-left corner of the shape's bounding box.
The column index of the upper-left corner of the shape's bounding box.
The initial width, in pixels, of the shape.
The initial height, in pixels, of the shape.


In This Topic
AddShapeToCell Method
In This Topic
Creates a new shape.
Syntax
'Declaration
 
Function AddShapeToCell( _
   ByVal type As AutoShapeType, _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal width As Double, _
   ByVal height As Double _
) As IShape
 
'Usage
 
Dim instance As IShapes
Dim type As AutoShapeType
Dim row As Integer
Dim column As Integer
Dim width As Double
Dim height As Double
Dim value As IShape
 
value = instance.AddShapeToCell(type, row, column, width, height)

Parameters

type
Specifies the type of IShape to create.
row
The row index of the upper-left corner of the shape's bounding box.
column
The column index of the upper-left corner of the shape's bounding box.
width
The initial width, in pixels, of the shape.
height
The initial height, in pixels, of the shape.

Return Value

The created IShape object.
See Also