Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddFormControl Method
The control type.
The initial horizontal position of the shape, in pixels, relative to the upper-left corner of cell A1 on a worksheet.
The initial vertical position of the shape, in pixels, relative to the upper-left corner of cell A1 on a worksheet.
The initial width, in pixels, of the shape.
The initial height, in pixels, of the shape.


In This Topic
    AddFormControl Method
    In This Topic
    Creates a form control.
    Syntax
    'Declaration
     
    
    Function AddFormControl( _
       ByVal type As FormControl, _
       ByVal x As Double, _
       ByVal y As Double, _
       ByVal width As Double, _
       ByVal height As Double _
    ) As IShape
    'Usage
     
    
    Dim instance As IShapes
    Dim type As FormControl
    Dim x As Double
    Dim y As Double
    Dim width As Double
    Dim height As Double
    Dim value As IShape
     
    value = instance.AddFormControl(type, x, y, width, height)

    Parameters

    type
    The control type.
    x
    The initial horizontal position of the shape, in pixels, relative to the upper-left corner of cell A1 on a worksheet.
    y
    The initial vertical position of the shape, in pixels, relative to the upper-left corner of cell A1 on a worksheet.
    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