[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IOptionButton.GroupBox

GroupBox Property

GroupBox

Gets the first group box that contains the option button.

Option buttons in the same group box are in the same group. If this method returns null, the option button belongs to the default group.

Option buttons in the same group share the value of the ICellLinkControl.LinkedCell property. They also affect the selection state of other option buttons in the same group.

Declaration
IGroupBox GroupBox { get; }
ReadOnly Property GroupBox As IGroupBox
Property Value
Type Description
IGroupBox

The first group box that contains the option button. The value is null (Nothing) if the option button is in the default group.

Examples
IOptionButton optionButton = worksheet.Controls.AddOptionButton(22.2, 24.6, 109.2, 16.8);
IGroupBox groupBox = worksheet.Controls.AddGroupBox(7.8, 6, 196.8, 122.4);
groupBox.Text = "Choices";
IGroupBox parentGroup = optionButton.GroupBox;
string text = parentGroup.Text;