# GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar" class="text-break">RibbonBar Class
</h1>
  <div class="markdown level0 summary"><p>Represents the spreadsheet ribbon bar.</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><span class="xref">RibbonBar</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_RibbonBar_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(RibbonBar), &quot;Resources.RibbonBar.png&quot;)]
public class RibbonBar : Control</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(RibbonBar), &quot;Resources.RibbonBar.png&quot;)&gt;
Public Class RibbonBar
    Inherits Control</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="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar__ctor" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.#ctor">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.-ctor.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar__ctor">RibbonBar()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.html">RibbonBar</a> class.</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="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ApplicationMenu" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ApplicationMenu">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ApplicationMenu.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ApplicationMenu">ApplicationMenu</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the object that represents the Application menu at the top-left corner of the Ribbon.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_AutoSize" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.AutoSize">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.AutoSize.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_AutoSize">AutoSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or set value indicating whether the size of this control is calculated automatically.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ContextualTabGroups" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ContextualTabGroups">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ContextualTabGroups.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ContextualTabGroups">ContextualTabGroups</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of contextual tab groups.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CustomColorSchemes" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CustomColorSchemes">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CustomColorSchemes.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CustomColorSchemes">CustomColorSchemes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets custom color schemes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CustomFontSchemes" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CustomFontSchemes">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CustomFontSchemes.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CustomFontSchemes">CustomFontSchemes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets custom font schemes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CustomThemes" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CustomThemes">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CustomThemes.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CustomThemes">CustomThemes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets custom themes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_DefaultSize" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.DefaultSize">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.DefaultSize.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_DefaultSize">DefaultSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default size of the component.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Dock" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Dock">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Dock.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Dock">Dock</a>
        </td>
        <td class="markdown level1 summary"><p>The dock property controls to which edge of the container this control is docked to.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_FormulaBarLines" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.FormulaBarLines">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.FormulaBarLines.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_FormulaBarLines">FormulaBarLines</a>
        </td>
        <td class="markdown level1 summary"><p>Get or set the height of the formula bar in lines.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Qat" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Qat">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Qat.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Qat">Qat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the object that represents the Quick Access Toolbar (QAT).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_SelectedTab" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.SelectedTab">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.SelectedTab.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_SelectedTab">SelectedTab</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the selected tab.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ShowFormulaBar" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ShowFormulaBar">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ShowFormulaBar.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ShowFormulaBar">ShowFormulaBar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to show the formula bar.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Site" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Site">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Site.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Site">Site</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the site of the control.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Tabs" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Tabs">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Tabs.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Tabs">Tabs</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the tabs collection of this <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.html">RibbonBar</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ViewMode" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ViewMode">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ViewMode.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ViewMode">ViewMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the view mode of <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.html">RibbonBar</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="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Attach_FarPoint_Win_Spread_FpSpread_System_Boolean_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Attach(FarPoint.Win.Spread.FpSpread,System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Attach.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Attach_FarPoint_Win_Spread_FpSpread_System_Boolean_">Attach(FpSpread, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches the specified Spread control to the ribbon bar.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CreateRibbonForm" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CreateRibbonForm">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CreateRibbonForm.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CreateRibbonForm">CreateRibbonForm()</a>
        </td>
        <td class="markdown level1 summary"><p>Create the Ribbon Form which allows the Ribbon to display its items in the TitleBar area.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Detach" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Detach">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Detach.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Detach">Detach()</a>
        </td>
        <td class="markdown level1 summary"><p>Detach the specified Spread control to the ribbon bar.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Dispose_System_Boolean_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Dispose(System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Dispose.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ExecuteCommand_GrapeCity_Spreadsheet_WinForms_Ribbon_BuiltInCommands_System_Object_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ExecuteCommand(GrapeCity.Spreadsheet.WinForms.Ribbon.BuiltInCommands,System.Object)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ExecuteCommand.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ExecuteCommand_GrapeCity_Spreadsheet_WinForms_Ribbon_BuiltInCommands_System_Object_">ExecuteCommand(BuiltInCommands, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes a command with the specified parameter.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ExecuteCommand_System_String_System_Object_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ExecuteCommand(System.String,System.Object)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.ExecuteCommand.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_ExecuteCommand_System_String_System_Object_">ExecuteCommand(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes a command with the specified parameter.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_GenerateDefaultItems" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.GenerateDefaultItems">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.GenerateDefaultItems.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_GenerateDefaultItems">GenerateDefaultItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates default items for this <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.html">RibbonBar</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_GetPreferredSize_System_Drawing_Size_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.GetPreferredSize(System.Drawing.Size)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.GetPreferredSize.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_GetPreferredSize_System_Drawing_Size_">GetPreferredSize(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the size of a rectangular area into which a control can be fitted.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_GetSortFilterEnableState_System_Boolean_GrapeCity_Spreadsheet_AutoFilter__System_Boolean__System_Boolean__System_Boolean__" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.GetSortFilterEnableState(System.Boolean,GrapeCity.Spreadsheet.AutoFilter@,System.Boolean@,System.Boolean@,System.Boolean@)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.GetSortFilterEnableState.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_GetSortFilterEnableState_System_Boolean_GrapeCity_Spreadsheet_AutoFilter__System_Boolean__System_Boolean__System_Boolean__">GetSortFilterEnableState(bool, out AutoFilter, out bool, out bool, out bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_NotifyStateChange_GrapeCity_Spreadsheet_UI_StateEventArgs_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.NotifyStateChange(GrapeCity.Spreadsheet.UI.StateEventArgs)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.NotifyStateChange.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_NotifyStateChange_GrapeCity_Spreadsheet_UI_StateEventArgs_">NotifyStateChange(StateEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Pushes the state change to the updating queue of <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.html">RibbonBar</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_RefreshState_System_Boolean_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.RefreshState(System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.RefreshState.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_RefreshState_System_Boolean_">RefreshState(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Refresh state of all items in ribbon bar.</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="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_BeforeRefreshState" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.BeforeRefreshState">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.BeforeRefreshState.html">BeforeRefreshState</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before the ribbon bar start updating state of items.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CommandExecuted" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CommandExecuted">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CommandExecuted.html">CommandExecuted</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the corresponding command of a ribbon item is executed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_CommandExecuting" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CommandExecuting">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.CommandExecuting.html">CommandExecuting</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the corresponding command of a ribbon item is executing.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonBar_Error" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Error">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.Error.html">Error</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the user performs an invalid operation.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
