[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControlCollection.AddCheckBox

AddCheckBox Method

AddCheckBox(double, double, double, double)

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.

Declaration
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
Parameters
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.

Returns
Type Description
ICheckBox

The created ICheckBox.

Examples
ICheckBox checkBox = worksheet.Controls.AddCheckBox(54, 13.2, 64.2, 18);
checkBox.Text = "Accept terms";
checkBox.LinkedCell = worksheet.Range["A1"];