BarItems.CreateSplitButton(String, PopupMenu) Method

Creates a new split button and adds it to the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v21.2.dll


public BarButtonItem CreateSplitButton(
    string caption,
    PopupMenu menu


Name Type Description
caption String

A String value that specifies the item’s caption. This value is assigned to the BarItem.Caption property.

menu PopupMenu

A PopupMenu object that represents the button’s drop down control. This value is assigned to the BarButtonItem.DropDownControl property.


Type Description

A BarButtonItem object that represents the created bar item.


The CreateSplitButton method creates a new instance of the BarButtonItem class with the specified BarItem.Caption and BarButtonItem.DropDownControl properties and adds it to the current collection. The item’s BarButtonItem.ButtonStyle property is set to the BarButtonStyle.DropDown value.

See Also