[]
        
(Showing Draft Content)

C1.Win.C1Editor.ToolStrips.C1EditorToolStripBase.AddSplitButton

AddSplitButton Method

AddSplitButton(CommandSplitButton)

Adds a split button to the toolstrip.

Declaration
protected C1EditorToolStripSplitButton AddSplitButton(CommandSplitButton command)
Parameters
Type Name Description
CommandSplitButton command

The command assigned to the split button.

Returns
Type Description
C1EditorToolStripSplitButton

The new split button.

Remarks

The AddSplitButton method allows inheritors to add a split button of the class to the toolstrip.

Examples

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