# C1.Win.Ribbon.RibbonGroupCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_RibbonGroupCollection" data-uid="C1.Win.Ribbon.RibbonGroupCollection" class="text-break">RibbonGroupCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> objects in a <a class="xref" href="C1.Win.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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a></div>
    <div class="level2"><span class="xref">RibbonGroupCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Ribbon.html">C1.Win.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Ribbon.10.dll</h6>
  <h5 id="C1_Win_Ribbon_RibbonGroupCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class RibbonGroupCollection : CollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class RibbonGroupCollection
    Inherits CollectionBase
    Implements IList, ICollection, IEnumerable</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="C1_Win_Ribbon_RibbonGroupCollection_Item_System_Int32_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Item.html#C1_Win_Ribbon_RibbonGroupCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> at the specified position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_Item_System_String_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Item(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Item.html#C1_Win_Ribbon_RibbonGroupCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> with the specified name.</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="C1_Win_Ribbon_RibbonGroupCollection_Add_C1_Win_Ribbon_RibbonGroup_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Add(C1.Win.Ribbon.RibbonGroup)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Add.html#C1_Win_Ribbon_RibbonGroupCollection_Add_C1_Win_Ribbon_RibbonGroup_">Add(RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> to the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_Add_System_String_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Add(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Add.html#C1_Win_Ribbon_RibbonGroupCollection_Add_System_String_">Add(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> with the specified text to the collections.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_ClearAndDisposeGroups" data-uid="C1.Win.Ribbon.RibbonGroupCollection.ClearAndDisposeGroups">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.ClearAndDisposeGroups.html#C1_Win_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="C1_Win_Ribbon_RibbonGroupCollection_Contains_C1_Win_Ribbon_RibbonGroup_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Contains(C1.Win.Ribbon.RibbonGroup)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Contains.html#C1_Win_Ribbon_RibbonGroupCollection_Contains_C1_Win_Ribbon_RibbonGroup_">Contains(RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a> contains a specific <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_Contains_System_String_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Contains(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Contains.html#C1_Win_Ribbon_RibbonGroupCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the collection contains a <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> with the given name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_IndexOf_C1_Win_Ribbon_RibbonGroup_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.IndexOf(C1.Win.Ribbon.RibbonGroup)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.IndexOf.html#C1_Win_Ribbon_RibbonGroupCollection_IndexOf_C1_Win_Ribbon_RibbonGroup_">IndexOf(RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the index of the specified <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> in this <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_IndexOf_System_String_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.IndexOf(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.IndexOf.html#C1_Win_Ribbon_RibbonGroupCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> with the given name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_Insert_System_Int32_C1_Win_Ribbon_RibbonGroup_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Insert(System.Int32,C1.Win.Ribbon.RibbonGroup)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Insert.html#C1_Win_Ribbon_RibbonGroupCollection_Insert_System_Int32_C1_Win_Ribbon_RibbonGroup_">Insert(int, RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> to the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_OnClearComplete" data-uid="C1.Win.Ribbon.RibbonGroupCollection.OnClearComplete">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.OnClearComplete.html#C1_Win_Ribbon_RibbonGroupCollection_OnClearComplete">OnClearComplete()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after clearing the contents of
the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_OnInsertComplete_System_Int32_System_Object_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.OnInsertComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.OnInsertComplete.html#C1_Win_Ribbon_RibbonGroupCollection_OnInsertComplete_System_Int32_System_Object_">OnInsertComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after inserting a <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a>
into the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_OnRemoveComplete_System_Int32_System_Object_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.OnRemoveComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.OnRemoveComplete.html#C1_Win_Ribbon_RibbonGroupCollection_OnRemoveComplete_System_Int32_System_Object_">OnRemoveComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after removing a <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a>
from the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_OnSetComplete_System_Int32_System_Object_System_Object_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.OnSetComplete(System.Int32,System.Object,System.Object)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.OnSetComplete.html#C1_Win_Ribbon_RibbonGroupCollection_OnSetComplete_System_Int32_System_Object_System_Object_">OnSetComplete(int, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after setting a <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a>
in the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_OnValidate_System_Object_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.OnValidate(System.Object)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.OnValidate.html#C1_Win_Ribbon_RibbonGroupCollection_OnValidate_System_Object_">OnValidate(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks that <code class="paramref">value</code> is a <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGroupCollection_Remove_C1_Win_Ribbon_RibbonGroup_" data-uid="C1.Win.Ribbon.RibbonGroupCollection.Remove(C1.Win.Ribbon.RibbonGroup)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.Remove.html#C1_Win_Ribbon_RibbonGroupCollection_Remove_C1_Win_Ribbon_RibbonGroup_">Remove(RibbonGroup)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific <a class="xref" href="C1.Win.Ribbon.RibbonGroup.html">RibbonGroup</a> from the <a class="xref" href="C1.Win.Ribbon.RibbonGroupCollection.html">RibbonGroupCollection</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
