[]
Adds a new ICheckBox.
Creates a check box form control in the worksheet at the specified position and size, and returns the created control for further configuration.
ICheckBox AddCheckBox(double left, double top, double width, double height)
Function AddCheckBox(left As Double, top As Double, width As Double, height As Double) As ICheckBox
| Type | Name | Description |
|---|---|---|
| double | left | The horizontal position of the check box. |
| double | top | The vertical position of the check box. |
| double | width | The width of the check box. |
| double | height | The height of the check box. |
| Type | Description |
|---|---|
| ICheckBox | The created ICheckBox. |
ICheckBox checkBox = worksheet.Controls.AddCheckBox(54, 13.2, 64.2, 18);
checkBox.Text = "Accept terms";
checkBox.LinkedCell = worksheet.Range["A1"];