Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.ToolStrips Namespace / C1EditorToolStripBase Class / AddColorPicker Method
The command assigned to the color picker.
Example

In This Topic
    AddColorPicker Method
    In This Topic
    Adds a color picker to the toolstrip.
    Syntax
    'Declaration
     
    Protected Function AddColorPicker( _
       ByVal command As CommandColorPicker _
    ) As C1EditorToolStripColorPicker
    protected C1EditorToolStripColorPicker AddColorPicker( 
       CommandColorPicker command
    )

    Parameters

    command
    The command assigned to the color picker.

    Return Value

    The new combo box.
    Remarks
    The AddColorPicker method allows inheritors to add a control of the %% class to the toolstrip.
    Example
    The following code example demonstrates how to create a custom toolstrip that has Background color button.
    public class MyToolStrip : C1EditorToolStripBase
    {
       protected override void OnInitialize()
       {
        AddColorPicker(CommandColorPicker.BackColor);
       }
    }
    See Also