Bar

BarItems.CreateMenu(String, BarItem[]) Method

Creates a new BarSubItem and adds it to the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public BarSubItem CreateMenu(
    string caption,
    params BarItem[] items
)
Public Function CreateMenu(
    caption As String,
    ParamArray items As BarItem()
) As BarSubItem

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