# GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection" class="text-break">RibbonGalleryItemCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a> objects.</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">RibbonGalleryItemCollection</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_RibbonGalleryItemCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class RibbonGalleryItemCollection</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class RibbonGalleryItemCollection</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_RibbonGalleryItemCollection_Count" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Count">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Count.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_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.RibbonGalleryItemCollection.html">RibbonGalleryItemCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_Item_System_Int32_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Item.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_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.RibbonItem.html">RibbonItem</a> at the specified position of the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_Item_System_String_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Item.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem.html">RibbonItem</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="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_Add_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Add(GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Add.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_Add_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_">Add(RibbonItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem.html">RibbonItem</a> to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_ClearAndDisposeItems" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.ClearAndDisposeItems">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.ClearAndDisposeItems.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_ClearAndDisposeItems">ClearAndDisposeItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all items from the collection, then disposes the items.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_Remove_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Remove(GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonGalleryItemCollection.Remove.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonGalleryItemCollection_Remove_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_">Remove(RibbonItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of the specified <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem.html">RibbonItem</a> from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
