# GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection" class="text-break">RibbonItemCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem.html">RibbonItem</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">RibbonItemCollection</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonQatItemCollection.html">RibbonQatItemCollection</a></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_RibbonItemCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RibbonItemCollection</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RibbonItemCollection</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_RibbonItemCollection_Count" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Count">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Count.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_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.RibbonItemCollection.html">RibbonItemCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_Item_System_Int32_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Item.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_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_RibbonItemCollection_Item_System_String_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Item.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_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_RibbonItemCollection_Add_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Add(GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Add.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_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_RibbonItemCollection_Add_System_String_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Add(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Add.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_Add_System_String_">Add(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.html">RibbonButton</a> item to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_ClearAndDisposeItems" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.ClearAndDisposeItems">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.ClearAndDisposeItems.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_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_RibbonItemCollection_IndexOf_System_String_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.IndexOf(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.IndexOf.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_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="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem.html">RibbonItem</a> with the specified name in this collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_Insert_System_Int32_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Insert(System.Int32,GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Insert.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_Insert_System_Int32_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_">Insert(int, RibbonItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item to the list at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_Remove_GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItem_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Remove(GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItemCollection.Remove.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonItemCollection_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>
