# GrapeCity.Documents.Excel.Forms.IOptionButton.GroupBox

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Forms_IOptionButton_GroupBox_" data-uid="GrapeCity.Documents.Excel.Forms.IOptionButton.GroupBox*">GroupBox Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Forms_IOptionButton_GroupBox_" data-uid="GrapeCity.Documents.Excel.Forms.IOptionButton.GroupBox*"></a>
<h4 id="GrapeCity_Documents_Excel_Forms_IOptionButton_GroupBox" data-uid="GrapeCity.Documents.Excel.Forms.IOptionButton.GroupBox">GroupBox</h4>
<div class="markdown level1 summary"><p>Gets the first group box that contains the option button. <br>
Option buttons in the same group box are in the same group. <br>
If the value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> (<code>Nothing</code>),
the option button is in the default group. <br>
Option buttons in the same group will share the value of
<a class="xref" href="GrapeCity.Documents.Excel.Forms.ICellLinkControl.LinkedCell.html#GrapeCity_Documents_Excel_Forms_ICellLinkControl_LinkedCell">LinkedCell</a> property. <br>
They will also affect the selection state of other option buttons in the same group.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IGroupBox GroupBox { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">ReadOnly Property GroupBox As IGroupBox</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Forms.IGroupBox.html">IGroupBox</a></td>
      <td><p>The first group box that contains the option button.
The value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> (<code>Nothing</code>)
if the option button is in the default group.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Excel_Forms_IOptionButton_GroupBox_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>It's heavy to maintain the state of this property.
We don't recommend putting too many group boxes and option buttons in the same worksheet.</p>
</div>
</div>
