# GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection" class="text-break">RibbonGroupCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup.html">RibbonGroup</a> objects in a <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonTab.html">RibbonTab</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">RibbonGroupCollection</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.html">GrapeCity.Spreadsheet.WinForms.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.WinForms.Ribbon.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class RibbonGroupCollection</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class RibbonGroupCollection</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Count" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Count">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Count.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Item_System_Int32_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Item.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup.html">RibbonGroup</a> at the specified position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Item_System_String_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Item.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup.html">RibbonGroup</a> at the specified position in the collection.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Add_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroup_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Add(GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Add.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Add_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroup_">Add(RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup.html">RibbonGroup</a> to the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_ClearAndDisposeGroups" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.ClearAndDisposeGroups">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.ClearAndDisposeGroups.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_ClearAndDisposeGroups">ClearAndDisposeGroups()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all groups from the collection, then disposes the groups.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Insert_System_Int32_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroup_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Insert(System.Int32,GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Insert.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Insert_System_Int32_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroup_">Insert(int, RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup.html">RibbonGroup</a> to the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Remove_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroup_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Remove(GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.Remove.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroupCollection_Remove_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGroup_">Remove(RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroup.html">RibbonGroup</a> from the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
