[]
        
(Showing Draft Content)

C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddButton

AddButton Method

AddButton(CommandButton)

Adds a button to the toolstrip.

Declaration
protected C1EditorToolStripButton AddButton(CommandButton command)
Parameters
Type Name Description
CommandButton command

The command assigned to the button.

Returns
Type Description
C1EditorToolStripButton

The new button.

Remarks

The AddButton method allows inheritors to add a button of the class to the toolstrip.

Examples

The following code example demonstrates how to create 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);
   }
}