# C1.Win.Ribbon.RibbonGalleryItemCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_RibbonGalleryItemCollection" data-uid="C1.Win.Ribbon.RibbonGalleryItemCollection" class="text-break">RibbonGalleryItemCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.Win.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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a></div>
    <div class="level2"><a class="xref" href="C1.Win.Ribbon.RibbonItemCollectionBase.html">RibbonItemCollectionBase</a></div>
    <div class="level3"><span class="xref">RibbonGalleryItemCollection</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_RibbonGalleryItemCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class RibbonGalleryItemCollection : RibbonItemCollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class RibbonGalleryItemCollection
    Inherits RibbonItemCollectionBase
    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_RibbonGalleryItemCollection_Item_System_Int32_" data-uid="C1.Win.Ribbon.RibbonGalleryItemCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItemCollection.Item.html#C1_Win_Ribbon_RibbonGalleryItemCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a> at the specified position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItemCollection_Item_System_String_" data-uid="C1.Win.Ribbon.RibbonGalleryItemCollection.Item(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItemCollection.Item.html#C1_Win_Ribbon_RibbonGalleryItemCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</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_RibbonGalleryItemCollection_Add_System_String_" data-uid="C1.Win.Ribbon.RibbonGalleryItemCollection.Add(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItemCollection.Add.html#C1_Win_Ribbon_RibbonGalleryItemCollection_Add_System_String_">Add(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a> item to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItemCollection_IndexOf_System_String_" data-uid="C1.Win.Ribbon.RibbonGalleryItemCollection.IndexOf(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItemCollection.IndexOf.html#C1_Win_Ribbon_RibbonGalleryItemCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the index of the first occurrence of a <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a>
with the specified text in this collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItemCollection_Remove_System_String_" data-uid="C1.Win.Ribbon.RibbonGalleryItemCollection.Remove(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItemCollection.Remove.html#C1_Win_Ribbon_RibbonGalleryItemCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a>
with the specified text from this collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
