# C1.Win.Ribbon.RibbonGalleryItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_RibbonGalleryItem" data-uid="C1.Win.Ribbon.RibbonGalleryItem" class="text-break">RibbonGalleryItem Class
</h1>
  <div class="markdown level0 summary"><p>Button element in a drop-down gallery.</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.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="C1.Win.Ribbon.RibbonItem.html">RibbonItem</a></div>
    <div class="level4"><a class="xref" href="C1.Win.Ribbon.RibbonIconItem.html">RibbonIconItem</a></div>
    <div class="level5"><span class="xref">RibbonGalleryItem</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><span class="xref">IUiaSelectionItemProvider</span></div>
    <div><span class="xref">IUiaScrollItemProvider</span></div>
    <div><span class="xref">IUiaInvokeProvider</span></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_RibbonGalleryItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RibbonGalleryItem : RibbonIconItem, IComponent, IDisposable, IUiaSelectionItemProvider, IUiaScrollItemProvider, IUiaInvokeProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RibbonGalleryItem
    Inherits RibbonIconItem
    Implements IComponent, IDisposable, IUiaSelectionItemProvider, IUiaScrollItemProvider, IUiaInvokeProvider</code></pre>
  </div>
  <h3 id="constructors">Constructors
</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_RibbonGalleryItem__ctor" data-uid="C1.Win.Ribbon.RibbonGalleryItem.#ctor">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.-ctor.html#C1_Win_Ribbon_RibbonGalleryItem__ctor">RibbonGalleryItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItem__ctor_System_String_" data-uid="C1.Win.Ribbon.RibbonGalleryItem.#ctor(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.-ctor.html#C1_Win_Ribbon_RibbonGalleryItem__ctor_System_String_">RibbonGalleryItem(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItem__ctor_System_String_System_Drawing_Image_" data-uid="C1.Win.Ribbon.RibbonGalleryItem.#ctor(System.String,System.Drawing.Image)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.-ctor.html#C1_Win_Ribbon_RibbonGalleryItem__ctor_System_String_System_Drawing_Image_">RibbonGalleryItem(string, Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_RibbonGalleryItem_GalleryItemTextImageRelation" data-uid="C1.Win.Ribbon.RibbonGalleryItem.GalleryItemTextImageRelation">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.GalleryItemTextImageRelation.html#C1_Win_Ribbon_RibbonGalleryItem_GalleryItemTextImageRelation">GalleryItemTextImageRelation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value specifies the position of text and image relative to each other.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItem_GroupName" data-uid="C1.Win.Ribbon.RibbonGalleryItem.GroupName">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.GroupName.html#C1_Win_Ribbon_RibbonGalleryItem_GroupName">GroupName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the group name associated with the <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItem_Selected" data-uid="C1.Win.Ribbon.RibbonGalleryItem.Selected">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.Selected.html#C1_Win_Ribbon_RibbonGalleryItem_Selected">Selected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a> is currently selected in the owner <span class="xref">C1.Win.Ribbon.RibbonGalleryItem.RibbonGallery</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItem_Text" data-uid="C1.Win.Ribbon.RibbonGalleryItem.Text">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.Text.html#C1_Win_Ribbon_RibbonGalleryItem_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text associated with the <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.html">RibbonGalleryItem</a>.</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_RibbonGalleryItem_OnClick_System_EventArgs_" data-uid="C1.Win.Ribbon.RibbonGalleryItem.OnClick(System.EventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.OnClick.html#C1_Win_Ribbon_RibbonGalleryItem_OnClick_System_EventArgs_">OnClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.Click.html">Click</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItem_OnShowContextMenu_System_Windows_Forms_MouseEventArgs_" data-uid="C1.Win.Ribbon.RibbonGalleryItem.OnShowContextMenu(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.OnShowContextMenu.html#C1_Win_Ribbon_RibbonGalleryItem_OnShowContextMenu_System_Windows_Forms_MouseEventArgs_">OnShowContextMenu(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.ShowContextMenu.html">ShowContextMenu</a> event.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_RibbonGalleryItem_Click" data-uid="C1.Win.Ribbon.RibbonGalleryItem.Click">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.Click.html">Click</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the item is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonGalleryItem_ShowContextMenu" data-uid="C1.Win.Ribbon.RibbonGalleryItem.ShowContextMenu">
          <a class="xref" href="C1.Win.Ribbon.RibbonGalleryItem.ShowContextMenu.html">ShowContextMenu</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the context menu should be displayed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
