Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddFormControlToCell Method
The control type.
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
    AddFormControlToCell Method
    In This Topic
    Creates a form control.
    Syntax
    'Declaration
     
    
    Function AddFormControlToCell( _
       ByVal type As FormControl, _
       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 FormControl
    Dim row As Integer
    Dim column As Integer
    Dim width As Double
    Dim height As Double
    Dim value As IShape
     
    value = instance.AddFormControlToCell(type, row, column, width, height)
    IShape AddFormControlToCell( 
       FormControl type,
       int row,
       int column,
       double width,
       double height
    )

    Parameters

    type
    The control type.
    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 IShape object represents the new control.
    See Also