Implements the basic functionality common to C1XmlEditor-related toolstrips.
This class is abstract.
Namespace:
C1.Win.XmlEditor.ToolStripsAssembly: C1.Win.XmlEditor.2 (in C1.Win.XmlEditor.2.dll)
Syntax
| C# |
|---|
[ToolboxItemAttribute(false)] public abstract class C1XmlEditorToolStripBase : ToolStrip |
| Visual Basic (Declaration) |
|---|
<ToolboxItemAttribute(False)> _ Public MustInherit Class C1XmlEditorToolStripBase _ Inherits ToolStrip |
Remarks
To create your own C1XmlEditor-related toolstrip,
inherit from the C1XmlEditorToolStripBase class.
Override OnInitialize()()() to add items to the toolstrip.
Use AddButton(CommandButton) to add a button of C1XmlEditorToolStripButton type.
Use AddComboBox(CommandComboBox) to add a combo box of C1XmlEditorToolStripComboBox type.
Examples
The following code example demonstrates how to create and use a custom toolstrip that has Style combo box and Undo, Redo buttons.
Copy CodeC#
publicclass MyToolStrip : C1XmlEditorToolStripBase { protectedoverridevoid OnInitialize() { AddComboBox(CommandComboBox.Style); AddButton(CommandButton.Undo); AddButton(CommandButton.Redo); } } privatevoid Form1_Load(object sender, EventArgs e) { MyToolStrip myToolStrip = new MyToolStrip(); myToolStrip.Editor = c1XmlEditor1; 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.XmlEditor.ToolStrips..::.C1XmlEditorToolStripBase
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripMain
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripObjects
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripStyle
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripTable
System..::.MarshalByRefObject
System.ComponentModel..::.Component
System.Windows.Forms..::.Control
System.Windows.Forms..::.ScrollableControl
System.Windows.Forms..::.ToolStrip
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripBase
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripMain
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripObjects
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripStyle
C1.Win.XmlEditor.ToolStrips..::.C1XmlEditorToolStripTable