# C1.Win.Ribbon.IGalleryItemsPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_IGalleryItemsPanel" data-uid="C1.Win.Ribbon.IGalleryItemsPanel" class="text-break">IGalleryItemsPanel Interface
</h1>
  <div class="markdown level0 summary"><p>Provides functionality required for a <a class="xref" href="C1.Win.Ribbon.RibbonControlHost.html">RibbonControlHost</a> that is used in place of the gallery items panel.</p>
</div>
  <div class="markdown level0 conceptual"></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_IGalleryItemsPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IGalleryItemsPanel</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IGalleryItemsPanel</code></pre>
  </div>
  <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_IGalleryItemsPanel_ClosingGallery" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.ClosingGallery">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.ClosingGallery.html#C1_Win_Ribbon_IGalleryItemsPanel_ClosingGallery">ClosingGallery()</a>
        </td>
        <td class="markdown level1 summary"><p>The gallery calls this method before the dropdown closes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_FocusFirstItem" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.FocusFirstItem">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.FocusFirstItem.html#C1_Win_Ribbon_IGalleryItemsPanel_FocusFirstItem">FocusFirstItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets focus to the first item of the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_FocusItem_System_Object_" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.FocusItem(System.Object)">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.FocusItem.html#C1_Win_Ribbon_IGalleryItemsPanel_FocusItem_System_Object_">FocusItem(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets focus to the panel item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_FocusLastItem" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.FocusLastItem">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.FocusLastItem.html#C1_Win_Ribbon_IGalleryItemsPanel_FocusLastItem">FocusLastItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets focus to the last item of the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_GetFocusedItem" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.GetFocusedItem">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.GetFocusedItem.html#C1_Win_Ribbon_IGalleryItemsPanel_GetFocusedItem">GetFocusedItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the focused panel item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_GetItemWidth" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.GetItemWidth">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.GetItemWidth.html#C1_Win_Ribbon_IGalleryItemsPanel_GetItemWidth">GetItemWidth()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the width of one gallery item with child spacing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_OpeningGallery" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.OpeningGallery">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.OpeningGallery.html#C1_Win_Ribbon_IGalleryItemsPanel_OpeningGallery">OpeningGallery()</a>
        </td>
        <td class="markdown level1 summary"><p>The gallery calls this method before the dropdown form opens.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_SetVisibleItems_System_Int32_" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.SetVisibleItems(System.Int32)">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.SetVisibleItems.html#C1_Win_Ribbon_IGalleryItemsPanel_SetVisibleItems_System_Int32_">SetVisibleItems(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the number of actually visible items in the gallery.</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_IGalleryItemsPanel_DropDownClosed" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.DropDownClosed">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.DropDownClosed.html">DropDownClosed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the drop-down portion of this element has closed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_LastItemLostFocus" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.LastItemLostFocus">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.LastItemLostFocus.html">LastItemLostFocus</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the last item loses focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_SelectedViewChanged" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.SelectedViewChanged">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.SelectedViewChanged.html">SelectedViewChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the selection rectangle changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_IGalleryItemsPanel_SizeChanged" data-uid="C1.Win.Ribbon.IGalleryItemsPanel.SizeChanged">
          <a class="xref" href="C1.Win.Ribbon.IGalleryItemsPanel.SizeChanged.html">SizeChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the size value of the items panel changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
