# C1.Blazor.Ribbon.C1ButtonTool

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Blazor_Ribbon_C1ButtonTool" data-uid="C1.Blazor.Ribbon.C1ButtonTool" class="text-break">C1ButtonTool Class
</h1>
  <div class="markdown level0 summary"><p>Control tool that represents a button that performs an action.</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/microsoft.aspnetcore.components.componentbase">ComponentBase</a></div>
    <div class="level2"><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.C1View.html">C1View</a></div>
    <div class="level3"><a class="xref" href="C1.Blazor.Ribbon.C1Tool.html">C1Tool</a></div>
    <div class="level4"><span class="xref">C1ButtonTool</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleafterrender">IHandleAfterRender</a></div>
    <div><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.IDependencyObject.html">IDependencyObject</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleevent">IHandleEvent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.icomponent">IComponent</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Blazor.Ribbon.html">C1.Blazor.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.Blazor.Ribbon.dll</h6>
  <h5 id="C1_Blazor_Ribbon_C1ButtonTool_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1ButtonTool : C1Tool, IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable, IComponent</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1ButtonTool
    Inherits C1Tool
    Implements IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable, IComponent</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_Blazor_Ribbon_C1ButtonTool__ctor" data-uid="C1.Blazor.Ribbon.C1ButtonTool.#ctor">
          <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.-ctor.html#C1_Blazor_Ribbon_C1ButtonTool__ctor">C1ButtonTool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.html">C1ButtonTool</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="C1_Blazor_Ribbon_C1ButtonTool_Click" data-uid="C1.Blazor.Ribbon.C1ButtonTool.Click">
          <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.Click.html#C1_Blazor_Ribbon_C1ButtonTool_Click">Click</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the tool is clicked, either through the menu or the control itself.</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_Blazor_Ribbon_C1ButtonTool_Dispose_System_Boolean_" data-uid="C1.Blazor.Ribbon.C1ButtonTool.Dispose(System.Boolean)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.Dispose.html#C1_Blazor_Ribbon_C1ButtonTool_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ButtonTool_Execute_System_Object_" data-uid="C1.Blazor.Ribbon.C1ButtonTool.Execute(System.Object)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.Execute.html#C1_Blazor_Ribbon_C1ButtonTool_Execute_System_Object_">Execute(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the tool is executed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ButtonTool_GetContentRenderFragment_C1_Blazor_Core_C1Style_" data-uid="C1.Blazor.Ribbon.C1ButtonTool.GetContentRenderFragment(C1.Blazor.Core.C1Style)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.GetContentRenderFragment.html#C1_Blazor_Ribbon_C1ButtonTool_GetContentRenderFragment_C1_Blazor_Core_C1Style_">GetContentRenderFragment(C1Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.renderfragment">RenderFragment</a> that represents the tool's UI content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ButtonTool_OnAfterRender_System_Boolean_" data-uid="C1.Blazor.Ribbon.C1ButtonTool.OnAfterRender(System.Boolean)">
          <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.OnAfterRender.html#C1_Blazor_Ribbon_C1ButtonTool_OnAfterRender_System_Boolean_">OnAfterRender(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Ribbon_C1ButtonTool_OnClick" data-uid="C1.Blazor.Ribbon.C1ButtonTool.OnClick">
          <a class="xref" href="C1.Blazor.Ribbon.C1ButtonTool.OnClick.html#C1_Blazor_Ribbon_C1ButtonTool_OnClick">OnClick()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
