[]
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.
IGroupBox GroupBox { get; }
ReadOnly Property GroupBox As IGroupBox
| Type | Description |
|---|---|
| IGroupBox | The first group box that contains the option button.
The value is null ( |
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;