# C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton" class="text-break">C1EditorToolStripButton Class
</h1>
  <div class="markdown level0 summary"><p>Represents a toolstrip button which performs a command in a linked <a class="xref" href="C1.Win.C1Editor.C1Editor.html">C1Editor</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.toolstripitem">ToolStripItem</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.toolstripbutton">ToolStripButton</a></div>
    <div class="level5"><span class="xref">C1EditorToolStripButton</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Editor.ToolStrips.html">C1.Win.C1Editor.ToolStrips</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Editor.4.8.dll</h6>
  <h5 id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1EditorToolStripButton : ToolStripButton, IDropTarget, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1EditorToolStripButton
    Inherits ToolStripButton
    Implements IDropTarget, IComponent, IDisposable</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Use this class to add a <a class="xref" href="C1.Win.C1Editor.C1Editor.html">C1Editor</a>-related button to a ToolStrip.</p>
</div>
  <h5 id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_examples"><strong>Examples</strong></h5>
  <p>The following code example demonstrates how to create a <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.html">C1EditorToolStripButton</a> and add it to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.toolstrip">ToolStrip</a>.</p>
<pre><code class="lang-csharp">C1EditorToolStripButton button = new C1EditorToolStripButton();
button.Command = CommandButton.ClearFormatting;
button.Editor = c1Editor1;
toolStrip1.Items.Add(button);</code></pre>

  <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_C1Editor_ToolStrips_C1EditorToolStripButton__ctor" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.#ctor">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.-ctor.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton__ctor">C1EditorToolStripButton()</a>
        </td>
        <td class="markdown level1 summary"></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_C1Editor_ToolStrips_C1EditorToolStripButton_Command" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.Command">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.Command.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_Command">Command</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_Editor" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.Editor">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.Editor.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_Editor">Editor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the editor.</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_C1Editor_ToolStrips_C1EditorToolStripButton_OnClick_System_EventArgs_" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnClick(System.EventArgs)">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnClick.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_OnClick_System_EventArgs_">OnClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides OnClick.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_OnCommandChanged" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnCommandChanged">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnCommandChanged.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_OnCommandChanged">OnCommandChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the command is changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_OnEditorChanged" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnEditorChanged">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnEditorChanged.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_OnEditorChanged">OnEditorChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the editor is changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_OnEditorChanging" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnEditorChanging">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.OnEditorChanging.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripButton_OnEditorChanging">OnEditorChanging()</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the editor is changing.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
