# C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase" class="text-break">C1EditorToolStripBase Class
</h1>
  <div class="markdown level0 summary"><p>Implements the basic functionality common to <a class="xref" href="C1.Win.C1Editor.C1Editor.html">C1Editor</a>-related toolstrips.
This class is abstract.</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.control">Control</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.scrollablecontrol">ScrollableControl</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.toolstrip">ToolStrip</a></div>
    <div class="level6"><span class="xref">C1EditorToolStripBase</span></div>
      <div class="level7"><a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripMain.html">C1EditorToolStripMain</a></div>
      <div class="level7"><a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripObjects.html">C1EditorToolStripObjects</a></div>
      <div class="level7"><a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripReview.html">C1EditorToolStripReview</a></div>
      <div class="level7"><a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripStyle.html">C1EditorToolStripStyle</a></div>
      <div class="level7"><a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripTable.html">C1EditorToolStripTable</a></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.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</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_C1EditorToolStripBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1EditorToolStripBase : ToolStrip, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1EditorToolStripBase
    Inherits ToolStrip
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>To create your own <a class="xref" href="C1.Win.C1Editor.C1Editor.html">C1Editor</a>-related toolstrip,
inherit from the C1EditorToolStripBase class.</p>
<p>Override <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.OnInitialize.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_OnInitialize">OnInitialize()</a> to add items to the toolstrip.</p>
<p>Use <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddButton.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddButton_C1_Win_C1Editor_ToolStrips_CommandButton_">AddButton(CommandButton)</a> to add a button of <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripButton.html">C1EditorToolStripButton</a> type.</p>
<p>Use <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddComboBox.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddComboBox_C1_Win_C1Editor_ToolStrips_CommandComboBox_">AddComboBox(CommandComboBox)</a> to add a combo box of <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripComboBox.html">C1EditorToolStripComboBox</a> type.</p>
</div>
  <h5 id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_examples"><strong>Examples</strong></h5>
  <p>The following code example demonstrates how to create and use a custom toolstrip that has Style combo box and Undo, Redo buttons.</p>
<pre><code class="lang-csharp">public class MyToolStrip : C1EditorToolStripBase
{
   protected override void OnInitialize()
   {
    AddComboBox(CommandComboBox.Style);
    AddButton(CommandButton.Undo);
    AddButton(CommandButton.Redo);
   }
}

private void Form1_Load(object sender, EventArgs e)
{
     MyToolStrip myToolStrip = new MyToolStrip();
     myToolStrip.Editor = c1Editor1;
     this.Controls.Add(myToolStrip);
}</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_C1EditorToolStripBase__ctor" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.#ctor">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.-ctor.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase__ctor">C1EditorToolStripBase()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of C1EditorToolStripBase 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_Win_C1Editor_ToolStrips_C1EditorToolStripBase_Editor" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.Editor">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.Editor.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_Editor">Editor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.C1Editor.C1Editor.html">C1Editor</a> control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_Items" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.Items">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.Items.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_Items">Items</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides ToolStrip.Items.</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_C1EditorToolStripBase_AddButton_C1_Win_C1Editor_ToolStrips_CommandButton_" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddButton(C1.Win.C1Editor.ToolStrips.CommandButton)">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddButton.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddButton_C1_Win_C1Editor_ToolStrips_CommandButton_">AddButton(CommandButton)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a button to the toolstrip.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddColorPicker_C1_Win_C1Editor_ToolStrips_CommandColorPicker_" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddColorPicker(C1.Win.C1Editor.ToolStrips.CommandColorPicker)">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddColorPicker.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddColorPicker_C1_Win_C1Editor_ToolStrips_CommandColorPicker_">AddColorPicker(CommandColorPicker)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a color picker to the toolstrip.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddComboBox_C1_Win_C1Editor_ToolStrips_CommandComboBox_" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddComboBox(C1.Win.C1Editor.ToolStrips.CommandComboBox)">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddComboBox.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddComboBox_C1_Win_C1Editor_ToolStrips_CommandComboBox_">AddComboBox(CommandComboBox)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a combo box to the toolstrip.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddSplitButton_C1_Win_C1Editor_ToolStrips_CommandSplitButton_" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddSplitButton(C1.Win.C1Editor.ToolStrips.CommandSplitButton)">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddSplitButton.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_AddSplitButton_C1_Win_C1Editor_ToolStrips_CommandSplitButton_">AddSplitButton(CommandSplitButton)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a split button to the toolstrip.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_OnInitialize" data-uid="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.OnInitialize">
          <a class="xref" href="C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.OnInitialize.html#C1_Win_C1Editor_ToolStrips_C1EditorToolStripBase_OnInitialize">OnInitialize()</a>
        </td>
        <td class="markdown level1 summary"><p>Adds default items to the toolstrip.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
