[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControlCollection.AddGroupBox

AddGroupBox Method

AddGroupBox(double, double, double, double)

Adds a new IGroupBox.

Creates a group box control at the specified location and size on the worksheet. A group box can be used to organize related controls, such as IOptionButton controls.

Declaration
IGroupBox AddGroupBox(double left, double top, double width, double height)
Function AddGroupBox(left As Double, top As Double, width As Double, height As Double) As IGroupBox
Parameters
Type Name Description
double left

The left coordinate of the group box.

double top

The top coordinate of the group box.

double width

The width of the group box.

double height

The height of the group box.

Returns
Type Description
IGroupBox

The created IGroupBox.

Examples
IGroupBox groupBox = worksheet.Controls.AddGroupBox(29.75, 48.2, 136.5, 113.99);
groupBox.Text = "Group 1";