# C1.Win.Ribbon.RibbonButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_RibbonButton" data-uid="C1.Win.Ribbon.RibbonButton" class="text-break">RibbonButton Class
</h1>
  <div class="markdown level0 summary"><p>Represents a button element in a <a class="xref" href="C1.Win.Ribbon.C1Ribbon.html">C1Ribbon</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="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">RibbonButton</span></div>
      <div class="level6"><a class="xref" href="../C1.Win.FlexChart.Toolbar.10/C1.Win.Chart.Ribbon.ChartRibbonButton.html">ChartRibbonButton</a></div>
      <div class="level6"><a class="xref" href="C1.Win.Ribbon.RibbonCheckBox.html">RibbonCheckBox</a></div>
      <div class="level6"><a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.html">RibbonToggleButton</a></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">IUiaButton</span></div>
    <div><span class="xref">IUiaInvokeProvider</span></div>
    <div><span class="xref">IUiaSelectionItemProvider</span></div>
    <div><span class="xref">IUiaScrollItemProvider</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_RibbonButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RibbonButton : RibbonIconItem, IComponent, IDisposable, IUiaButton, IUiaInvokeProvider, IUiaSelectionItemProvider, IUiaScrollItemProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RibbonButton
    Inherits RibbonIconItem
    Implements IComponent, IDisposable, IUiaButton, IUiaInvokeProvider, IUiaSelectionItemProvider, IUiaScrollItemProvider</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_RibbonButton__ctor" data-uid="C1.Win.Ribbon.RibbonButton.#ctor">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.-ctor.html#C1_Win_Ribbon_RibbonButton__ctor">RibbonButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonButton.html">RibbonButton</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton__ctor_System_Drawing_Image_" data-uid="C1.Win.Ribbon.RibbonButton.#ctor(System.Drawing.Image)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.-ctor.html#C1_Win_Ribbon_RibbonButton__ctor_System_Drawing_Image_">RibbonButton(Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonButton.html">RibbonButton</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton__ctor_System_String_" data-uid="C1.Win.Ribbon.RibbonButton.#ctor(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.-ctor.html#C1_Win_Ribbon_RibbonButton__ctor_System_String_">RibbonButton(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonButton.html">RibbonButton</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton__ctor_System_String_System_Drawing_Image_" data-uid="C1.Win.Ribbon.RibbonButton.#ctor(System.String,System.Drawing.Image)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.-ctor.html#C1_Win_Ribbon_RibbonButton__ctor_System_String_System_Drawing_Image_">RibbonButton(string, Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonButton.html">RibbonButton</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton__ctor_System_String_System_Drawing_Image_System_Drawing_Image_" data-uid="C1.Win.Ribbon.RibbonButton.#ctor(System.String,System.Drawing.Image,System.Drawing.Image)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.-ctor.html#C1_Win_Ribbon_RibbonButton__ctor_System_String_System_Drawing_Image_System_Drawing_Image_">RibbonButton(string, Image, Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.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="C1_Win_Ribbon_RibbonButton_CanBeAddedToQat" data-uid="C1.Win.Ribbon.RibbonButton.CanBeAddedToQat">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.CanBeAddedToQat.html#C1_Win_Ribbon_RibbonButton_CanBeAddedToQat">CanBeAddedToQat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the user can add this <a class="xref" href="C1.Win.Ribbon.RibbonItem.html">RibbonItem</a> to the Quick Access Toolbar at runtime.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_KeyTip" data-uid="C1.Win.Ribbon.RibbonButton.KeyTip">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.KeyTip.html#C1_Win_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="C1_Win_Ribbon_RibbonButton_OwnerDraw" data-uid="C1.Win.Ribbon.RibbonButton.OwnerDraw">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.OwnerDraw.html#C1_Win_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="C1_Win_Ribbon_RibbonButton_RepeatPressDelay" data-uid="C1.Win.Ribbon.RibbonButton.RepeatPressDelay">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.RepeatPressDelay.html#C1_Win_Ribbon_RibbonButton_RepeatPressDelay">RepeatPressDelay</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the interval before the button starts firing click events, in milliseconds.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_RepeatPressInterval" data-uid="C1.Win.Ribbon.RibbonButton.RepeatPressInterval">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.RepeatPressInterval.html#C1_Win_Ribbon_RibbonButton_RepeatPressInterval">RepeatPressInterval</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the interval between clicks when the button is kept pressed, in milliseconds.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_SelectableInListItem" data-uid="C1.Win.Ribbon.RibbonButton.SelectableInListItem">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.SelectableInListItem.html#C1_Win_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 RibbonListItem.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_ShortcutKeyDisplayString" data-uid="C1.Win.Ribbon.RibbonButton.ShortcutKeyDisplayString">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.ShortcutKeyDisplayString.html#C1_Win_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="C1_Win_Ribbon_RibbonButton_ShortcutKeys" data-uid="C1.Win.Ribbon.RibbonButton.ShortcutKeys">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.ShortcutKeys.html#C1_Win_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="C1_Win_Ribbon_RibbonButton_ShowInMore" data-uid="C1.Win.Ribbon.RibbonButton.ShowInMore">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.ShowInMore.html#C1_Win_Ribbon_RibbonButton_ShowInMore">ShowInMore</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating if this <a class="xref" href="C1.Win.Ribbon.RibbonItem.html">RibbonItem</a> can be shown in drop down part of the More button when ribbon is simplified.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_Text" data-uid="C1.Win.Ribbon.RibbonButton.Text">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.Text.html#C1_Win_Ribbon_RibbonButton_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.RibbonButton.html">RibbonButton</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_RibbonButton_Dispose_System_Boolean_" data-uid="C1.Win.Ribbon.RibbonButton.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.Dispose.html#C1_Win_Ribbon_RibbonButton_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="C1_Win_Ribbon_RibbonButton_OnClick_System_EventArgs_" data-uid="C1.Win.Ribbon.RibbonButton.OnClick(System.EventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.OnClick.html#C1_Win_Ribbon_RibbonButton_OnClick_System_EventArgs_">OnClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonButton.Click.html">Click</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_OnDoubleClick_System_EventArgs_" data-uid="C1.Win.Ribbon.RibbonButton.OnDoubleClick(System.EventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.OnDoubleClick.html#C1_Win_Ribbon_RibbonButton_OnDoubleClick_System_EventArgs_">OnDoubleClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonButton.DoubleClick.html">DoubleClick</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_OnDrawItem_C1_Win_Ribbon_DrawItemEventArgs_" data-uid="C1.Win.Ribbon.RibbonButton.OnDrawItem(C1.Win.Ribbon.DrawItemEventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.OnDrawItem.html#C1_Win_Ribbon_RibbonButton_OnDrawItem_C1_Win_Ribbon_DrawItemEventArgs_">OnDrawItem(DrawItemEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonButton.DrawItem.html">DrawItem</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_OnMeasureItem_C1_Win_Ribbon_MeasureItemEventArgs_" data-uid="C1.Win.Ribbon.RibbonButton.OnMeasureItem(C1.Win.Ribbon.MeasureItemEventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.OnMeasureItem.html#C1_Win_Ribbon_RibbonButton_OnMeasureItem_C1_Win_Ribbon_MeasureItemEventArgs_">OnMeasureItem(MeasureItemEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonButton.MeasureItem.html">MeasureItem</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_PerformClick" data-uid="C1.Win.Ribbon.RibbonButton.PerformClick">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.PerformClick.html#C1_Win_Ribbon_RibbonButton_PerformClick">PerformClick()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs the <a class="xref" href="C1.Win.Ribbon.RibbonButton.Click.html">Click</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_PerformDoubleClick" data-uid="C1.Win.Ribbon.RibbonButton.PerformDoubleClick">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.PerformDoubleClick.html#C1_Win_Ribbon_RibbonButton_PerformDoubleClick">PerformDoubleClick()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs the <a class="xref" href="C1.Win.Ribbon.RibbonButton.DoubleClick.html">DoubleClick</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_ResetText" data-uid="C1.Win.Ribbon.RibbonButton.ResetText">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.ResetText.html#C1_Win_Ribbon_RibbonButton_ResetText">ResetText()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Ribbon.RibbonButton.Text.html#C1_Win_Ribbon_RibbonButton_Text">Text</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_ShouldSerializeText" data-uid="C1.Win.Ribbon.RibbonButton.ShouldSerializeText">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.ShouldSerializeText.html#C1_Win_Ribbon_RibbonButton_ShouldSerializeText">ShouldSerializeText()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Ribbon.RibbonButton.Text.html#C1_Win_Ribbon_RibbonButton_Text">Text</a> property.</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_RibbonButton_Click" data-uid="C1.Win.Ribbon.RibbonButton.Click">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.Click.html">Click</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the button is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_DoubleClick" data-uid="C1.Win.Ribbon.RibbonButton.DoubleClick">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.DoubleClick.html">DoubleClick</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the button is double-clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_DrawItem" data-uid="C1.Win.Ribbon.RibbonButton.DrawItem">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.DrawItem.html">DrawItem</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the button is owner-drawn.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonButton_MeasureItem" data-uid="C1.Win.Ribbon.RibbonButton.MeasureItem">
          <a class="xref" href="C1.Win.Ribbon.RibbonButton.MeasureItem.html">MeasureItem</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the button is measured.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
