# C1.Win.Ribbon.RibbonToggleButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_RibbonToggleButton" data-uid="C1.Win.Ribbon.RibbonToggleButton" class="text-break">RibbonToggleButton Class
</h1>
  <div class="markdown level0 summary"><p>Button that works like a check box. When used within a toggle group,
acts as a radio button (checking one unchecks all others).</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"><a class="xref" href="C1.Win.Ribbon.RibbonButton.html">RibbonButton</a></div>
    <div class="level6"><span class="xref">RibbonToggleButton</span></div>
      <div class="level7"><a class="xref" href="C1.Win.Ribbon.RibbonRadioButton.html">RibbonRadioButton</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><span class="xref">IUiaToggleButton</span></div>
    <div><span class="xref">IUiaToggleProvider</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_RibbonToggleButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RibbonToggleButton : RibbonButton, IComponent, IDisposable, IUiaButton, IUiaInvokeProvider, IUiaSelectionItemProvider, IUiaScrollItemProvider, IUiaToggleButton, IUiaToggleProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RibbonToggleButton
    Inherits RibbonButton
    Implements IComponent, IDisposable, IUiaButton, IUiaInvokeProvider, IUiaSelectionItemProvider, IUiaScrollItemProvider, IUiaToggleButton, IUiaToggleProvider</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_RibbonToggleButton__ctor" data-uid="C1.Win.Ribbon.RibbonToggleButton.#ctor">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.-ctor.html#C1_Win_Ribbon_RibbonToggleButton__ctor">RibbonToggleButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.html">RibbonToggleButton</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton__ctor_System_Drawing_Image_" data-uid="C1.Win.Ribbon.RibbonToggleButton.#ctor(System.Drawing.Image)">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.-ctor.html#C1_Win_Ribbon_RibbonToggleButton__ctor_System_Drawing_Image_">RibbonToggleButton(Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.html">RibbonToggleButton</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_RibbonToggleButton_CanDepress" data-uid="C1.Win.Ribbon.RibbonToggleButton.CanDepress">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.CanDepress.html#C1_Win_Ribbon_RibbonToggleButton_CanDepress">CanDepress</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the second click depresses the button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_Pressed" data-uid="C1.Win.Ribbon.RibbonToggleButton.Pressed">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.Pressed.html#C1_Win_Ribbon_RibbonToggleButton_Pressed">Pressed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the button is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_PressedButton" data-uid="C1.Win.Ribbon.RibbonToggleButton.PressedButton">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.PressedButton.html#C1_Win_Ribbon_RibbonToggleButton_PressedButton">PressedButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the currently pressed button in this toggle group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_PressedIconSet" data-uid="C1.Win.Ribbon.RibbonToggleButton.PressedIconSet">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.PressedIconSet.html#C1_Win_Ribbon_RibbonToggleButton_PressedIconSet">PressedIconSet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the icon set for the Pressed state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_ToggleGroupName" data-uid="C1.Win.Ribbon.RibbonToggleButton.ToggleGroupName">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.ToggleGroupName.html#C1_Win_Ribbon_RibbonToggleButton_ToggleGroupName">ToggleGroupName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the group of toggle buttons which are mutually exclusive.</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_RibbonToggleButton_OnPressedButtonChanged_System_EventArgs_" data-uid="C1.Win.Ribbon.RibbonToggleButton.OnPressedButtonChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.OnPressedButtonChanged.html#C1_Win_Ribbon_RibbonToggleButton_OnPressedButtonChanged_System_EventArgs_">OnPressedButtonChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.PressedButtonChanged.html">PressedButtonChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_OnPressedChanged_System_EventArgs_" data-uid="C1.Win.Ribbon.RibbonToggleButton.OnPressedChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.OnPressedChanged.html#C1_Win_Ribbon_RibbonToggleButton_OnPressedChanged_System_EventArgs_">OnPressedChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.PressedChanged.html">PressedChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_ResetCanDepress" data-uid="C1.Win.Ribbon.RibbonToggleButton.ResetCanDepress">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.ResetCanDepress.html#C1_Win_Ribbon_RibbonToggleButton_ResetCanDepress">ResetCanDepress()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_ResetToggleGroupName" data-uid="C1.Win.Ribbon.RibbonToggleButton.ResetToggleGroupName">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.ResetToggleGroupName.html#C1_Win_Ribbon_RibbonToggleButton_ResetToggleGroupName">ResetToggleGroupName()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.ToggleGroupName.html#C1_Win_Ribbon_RibbonToggleButton_ToggleGroupName">ToggleGroupName</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_ShouldSerializeCanDepress" data-uid="C1.Win.Ribbon.RibbonToggleButton.ShouldSerializeCanDepress">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.ShouldSerializeCanDepress.html#C1_Win_Ribbon_RibbonToggleButton_ShouldSerializeCanDepress">ShouldSerializeCanDepress()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_ShouldSerializeToggleGroupName" data-uid="C1.Win.Ribbon.RibbonToggleButton.ShouldSerializeToggleGroupName">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.ShouldSerializeToggleGroupName.html#C1_Win_Ribbon_RibbonToggleButton_ShouldSerializeToggleGroupName">ShouldSerializeToggleGroupName()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.ToggleGroupName.html#C1_Win_Ribbon_RibbonToggleButton_ToggleGroupName">ToggleGroupName</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_RibbonToggleButton_PressedButtonChanged" data-uid="C1.Win.Ribbon.RibbonToggleButton.PressedButtonChanged">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.PressedButtonChanged.html">PressedButtonChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.Pressed.html#C1_Win_Ribbon_RibbonToggleButton_Pressed">Pressed</a> property is changed for some button that belongs to the same toggle group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonToggleButton_PressedChanged" data-uid="C1.Win.Ribbon.RibbonToggleButton.PressedChanged">
          <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.PressedChanged.html">PressedChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs whenever the <a class="xref" href="C1.Win.Ribbon.RibbonToggleButton.Pressed.html#C1_Win_Ribbon_RibbonToggleButton_Pressed">Pressed</a> property is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
