Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor.ToolStrips Namespace / C1EditorToolStripBase Class / AddComboBox Method
The command assigned to the button.
Example

In This Topic
    AddComboBox Method
    In This Topic
    Adds a combo box to the toolstrip.
    Syntax
    'Declaration
     
    Protected Function AddComboBox( _
       ByVal command As CommandComboBox _
    ) As C1EditorToolStripComboBox
    protected C1EditorToolStripComboBox AddComboBox( 
       CommandComboBox command
    )

    Parameters

    command
    The command assigned to the button.

    Return Value

    The new combo box.
    Remarks
    The AddComboBox method allows inheritors to add a button of the %% class to the toolstrip.
    Example
    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);
       }
    }
    See Also