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

BarListItem(BarManager, String) Constructor

Initializes a new instance of the BarListItem class with the specified settings.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public BarListItem(
    BarManager barManager,
    string caption
)

#Parameters

Name Type Description
barManager BarManager

A BarManager responsible for managing the current item. This value is assigned to the BarItem.Manager property.

caption String

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

#Remarks

If you create Bar Items in code, note that these objects may not function properly without being associated with a BarManager or RibbonControl. To create a Bar Item, use a Bar Item constructor that has the Bar Manager parameter. When creating a Bar Item in code for use within a RibbonControl, use a Bar Item constructor that has the parameter, and pass the RibbonControl.Manager object as the Bar Manager parameter.

See Also