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

In This Topic
    AddSplitButton Method
    In This Topic
    Adds a split button to the toolstrip.
    Syntax
    'Declaration
     
    Protected Function AddSplitButton( _
       ByVal command As CommandSplitButton _
    ) As C1EditorToolStripSplitButton
    protected C1EditorToolStripSplitButton AddSplitButton( 
       CommandSplitButton command
    )

    Parameters

    command
    The command assigned to the split button.

    Return Value

    The new split button.
    Remarks
    The AddSplitButton method allows inheritors to add a split button of the %% class to the toolstrip.
    Example
    The following code example demonstrates how to create a custom toolstrip that has Border split button.
    public class MyToolStrip : C1EditorToolStripBase
    {
       protected override void OnInitialize()
       {
        AddSplitButton(CommandSplitButton.Border);
       }
    }
    See Also