# C1.Win.C1Editor.ToolStrips.CommandButton

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Win_C1Editor_ToolStrips_CommandButton" data-uid="C1.Win.C1Editor.ToolStrips.CommandButton" class="text-break">CommandButton Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies the command used in a <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.html">C1EditorToolStripButton</a>.</p>
</div>
  <div class="markdown level0 conceptual"></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_CommandButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum CommandButton</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum CommandButton</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_ToolStrips_CommandButton_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The CommandButton enumeration is used by the <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.html">C1EditorToolStripButton</a> to set associated with the command text, tooltip and image.
The command defines also whether the button is checked or unchecked and whether the button is enabled or disabled.</p>
</div>
  <h5 id="C1_Win_C1Editor_ToolStrips_CommandButton_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="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_AddComment">AddComment</td>
        <td><p>Adds comment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_BigFont">BigFont</td>
        <td><p>Big font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Bold">Bold</td>
        <td><p>Bold.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Bookmark">Bookmark</td>
        <td><p>Bookmark.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_BulletedList">BulletedList</td>
        <td><p>Bulleted list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_CellProperties">CellProperties</td>
        <td><p>Cell properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Center">Center</td>
        <td><p>Center.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_ClearFormatting">ClearFormatting</td>
        <td><p>Clear formatting.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_ColumnProperties">ColumnProperties</td>
        <td><p>Column properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Copy">Copy</td>
        <td><p>Copy.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Cut">Cut</td>
        <td><p>Cut.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_DecreaseIndent">DecreaseIndent</td>
        <td><p>Decrease indent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_DeleteAllComments">DeleteAllComments</td>
        <td><p>Deletes all comments.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_DeleteColumn">DeleteColumn</td>
        <td><p>Delete column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_DeleteComment">DeleteComment</td>
        <td><p>Deletes the current comment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_DeleteRow">DeleteRow</td>
        <td><p>Delete row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_DeleteTable">DeleteTable</td>
        <td><p>Delete table.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Design">Design</td>
        <td><p>Design view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Find">Find</td>
        <td><p>Find.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_FlashMovie">FlashMovie</td>
        <td><p>FlashMovie.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Hyperlink">Hyperlink</td>
        <td><p>Hyperlink.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_IncreaseIndent">IncreaseIndent</td>
        <td><p>Increase indent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_InsertColumnAfter">InsertColumnAfter</td>
        <td><p>Insert column after.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_InsertColumnBefore">InsertColumnBefore</td>
        <td><p>Insert column before.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_InsertRowAbove">InsertRowAbove</td>
        <td><p>Insert row above.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_InsertRowBelow">InsertRowBelow</td>
        <td><p>Insert row below.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Italic">Italic</td>
        <td><p>Italic.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Justify">Justify</td>
        <td><p>Justify.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Left">Left</td>
        <td><p>Left.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_MoveNextComment">MoveNextComment</td>
        <td><p>Moves to the next comment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_MovePreviousComment">MovePreviousComment</td>
        <td><p>Moves to the previous comment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_New">New</td>
        <td><p>New file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_None">None</td>
        <td><p>Empty command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_NumberedList">NumberedList</td>
        <td><p>Numbered list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Open">Open</td>
        <td><p>Open file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Paste">Paste</td>
        <td><p>Paste.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Picture">Picture</td>
        <td><p>Picture.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Preview">Preview</td>
        <td><p>Preview.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Print">Print</td>
        <td><p>Print.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Redo">Redo</td>
        <td><p>Redo.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Replace">Replace</td>
        <td><p>Replace.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_ReplyComment">ReplyComment</td>
        <td><p>Replies to the comment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Right">Right</td>
        <td><p>Right.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_RowProperties">RowProperties</td>
        <td><p>Row properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Save">Save</td>
        <td><p>Save file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_SelectAll">SelectAll</td>
        <td><p>Select all.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_ShowComments">ShowComments</td>
        <td><p>Shows comments.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_SmallFont">SmallFont</td>
        <td><p>Small font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Source">Source</td>
        <td><p>Source view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Strikethrough">Strikethrough</td>
        <td><p>Strikethrough.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Subscript">Subscript</td>
        <td><p>Subscript.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Superscript">Superscript</td>
        <td><p>Superscript.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Table">Table</td>
        <td><p>New table.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_TableProperties">TableProperties</td>
        <td><p>Table properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Underline">Underline</td>
        <td><p>Underline.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_CommandButton_Undo">Undo</td>
        <td><p>Undo.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
