Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.ToolStrips Namespace / C1EditorToolStripBase Class
Members Example

In This Topic
    C1EditorToolStripBase Class
    In This Topic
    Implements the basic functionality common to C1.Win.C1Editor.C1Editor-related toolstrips. This class is abstract.
    Object Model
    C1EditorToolStripBase Class
    Syntax
    'Declaration
     
    Public MustInherit Class C1EditorToolStripBase 
       Inherits System.Windows.Forms.ToolStrip
    public abstract class C1EditorToolStripBase : System.Windows.Forms.ToolStrip 
    Remarks
    To create your own C1.Win.C1Editor.C1Editor-related toolstrip, inherit from the C1EditorToolStripBase class. Override OnInitialize to add items to the toolstrip. Use AddButton to add a button of C1EditorToolStripButton type. Use AddComboBox to add a combo box of C1EditorToolStripComboBox type.
    Example
    The following code example demonstrates how to create and use a custom toolstrip that has Style combo box and Undo, Redo buttons.
    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);
    }
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Windows.Forms.Control
                System.Windows.Forms.ScrollableControl
                   System.Windows.Forms.ToolStrip
                      C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase
                         C1.Win.C1Editor.ToolStrips.C1EditorToolStripMain
                         C1.Win.C1Editor.ToolStrips.C1EditorToolStripObjects
                         C1.Win.C1Editor.ToolStrips.C1EditorToolStripReview
                         C1.Win.C1Editor.ToolStrips.C1EditorToolStripStyle
                         C1.Win.C1Editor.ToolStrips.C1EditorToolStripTable

    See Also