Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / FormatControlCommand Class / AddFormControl Method
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. Or the horizontal position (in pixels) of the connector's end point relative to the upper-left corner of the document.
The initial height, in pixels, of the shape. Or the vertical position (in pixels) of the connector's end point relative to the upper-left corner of the document.
The GrapeCity.Spreadsheet.Drawing.FormControl type of the form control.


In This Topic
    AddFormControl Method (FormatControlCommand)
    In This Topic
    Initializes a new instance of the FormatControlCommand class for creatation shape action.
    Syntax
    'Declaration
     
    
    Public Shared Function AddFormControl( _
       ByVal worksheet As Worksheet, _
       ByVal x As Double, _
       ByVal y As Double, _
       ByVal width As Double, _
       ByVal height As Double, _
       ByVal type As FormControl _
    ) As FormatControlCommand
    'Usage
     
    
    Dim worksheet As Worksheet
    Dim x As Double
    Dim y As Double
    Dim width As Double
    Dim height As Double
    Dim type As FormControl
    Dim value As FormatControlCommand
     
    value = FormatControlCommand.AddFormControl(worksheet, x, y, width, height, type)

    Parameters

    worksheet
    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. Or the horizontal position (in pixels) of the connector's end point relative to the upper-left corner of the document.
    height
    The initial height, in pixels, of the shape. Or the vertical position (in pixels) of the connector's end point relative to the upper-left corner of the document.
    type
    The GrapeCity.Spreadsheet.Drawing.FormControl type of the form control.
    See Also