[]
Adds a button to the toolstrip.
protected C1EditorToolStripButton AddButton(CommandButton command)
Type | Name | Description |
---|---|---|
CommandButton | command | The command assigned to the button. |
Type | Description |
---|---|
C1EditorToolStripButton | The new button. |
The AddButton method allows inheritors to add a button of the
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);
}
}