# GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton" class="text-break">RibbonButton Class
</h1>
  <div class="markdown level0 summary"><p>Represents a button element in a <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonBar.html">RibbonBar</a> control.</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="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonItem.html">RibbonItem</a></div>
    <div class="level2"><a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonIconItem.html">RibbonIconItem</a></div>
    <div class="level3"><span class="xref">RibbonButton</span></div>
      <div class="level4"><a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonCheckBox.html">RibbonCheckBox</a></div>
      <div class="level4"><a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonToggleButton.html">RibbonToggleButton</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_RibbonButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RibbonButton : RibbonIconItem</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RibbonButton
    Inherits RibbonIconItem</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_RibbonButton__ctor" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.#ctor">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.-ctor.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton__ctor">RibbonButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.html">RibbonButton</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="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_KeyTip" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.KeyTip">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.KeyTip.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_KeyTip">KeyTip</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the KeyTip providing keyboard access to the Button.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_OwnerDraw" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.OwnerDraw">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.OwnerDraw.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_OwnerDraw">OwnerDraw</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the button is owner-drawn.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_SelectableInListItem" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.SelectableInListItem">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.SelectableInListItem.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_SelectableInListItem">SelectableInListItem</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether this item can be selected in a <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonListItem.html">RibbonListItem</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_ShortcutKeyDisplayString" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.ShortcutKeyDisplayString">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.ShortcutKeyDisplayString.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_ShortcutKeyDisplayString">ShortcutKeyDisplayString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the shortcut key text associated with the menu item.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_ShortcutKeys" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.ShortcutKeys">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.ShortcutKeys.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_ShortcutKeys">ShortcutKeys</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the shortcut keys associated with the button.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_Text" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.Text">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.Text.html#GrapeCity_Spreadsheet_WinForms_Ribbon_RibbonButton_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text associated with the <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.html">RibbonButton</a>.</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_RibbonButton_DrawItem" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.DrawItem">
          <a class="xref" href="GrapeCity.Spreadsheet.WinForms.Ribbon.RibbonButton.DrawItem.html">DrawItem</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the button is owner-drawn.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
