Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItems.CreateMenu(String, BarItem[]) Method

Creates a new BarSubItem and adds it to the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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