[]
        
(Showing Draft Content)

C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddComboBox

AddComboBox Method

AddComboBox(CommandComboBox)

Adds a combo box to the toolstrip.

Declaration
protected C1EditorToolStripComboBox AddComboBox(CommandComboBox command)
Parameters
Type Name Description
CommandComboBox command

The command assigned to the button.

Returns
Type Description
C1EditorToolStripComboBox

The new combo box.

Remarks

The AddComboBox 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);
   }
}