[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControlCollection.AddOptionButton

AddOptionButton Method

AddOptionButton(double, double, double, double)

Adds a new IOptionButton.

Creates an option button control at the specified location and size and returns the created control. Option buttons placed inside the bounds of the same IGroupBox participate in the same selection group; otherwise, they belong to the worksheet's default group.

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

The left position of the option button.

double top

The top position of the option button.

double width

The width of the option button.

double height

The height of the option button.

Returns
Type Description
IOptionButton

The newly added IOptionButton.

Examples
IOptionButton optionButton = worksheet.Controls.AddOptionButton(39.45, 67.1, 98, 15.6);
optionButton.Text = "North";
optionButton.LinkedCell = worksheet.Range["A1"];