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 As Worksheet, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal 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