Skip to main content
Bar

BarItems.CreateMenu(String, BarItem[]) Method

Creates a new BarSubItem and adds it to the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public BarSubItem CreateMenu(
    string caption,
    params BarItem[] items
)

Parameters

Name Type Description
caption String

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

items BarItem[]

An array of BarItem objects (or descendants) that represents the collection of sub items.

Returns

Type Description
BarSubItem

A BarSubItem object that represents the created bar item.

See Also