Skip to main content

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

XRDesignBarManager.GetBarItemsByReportCommand(ReportCommand) Method

Gets an array of bar items within the bar manager by their report command.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v24.2.Extensions.dll

NuGet Package: DevExpress.Win.Reporting

#Declaration

public BarItem[] GetBarItemsByReportCommand(
    ReportCommand command
)

#Parameters

Name Type Description
command ReportCommand

A ReportCommand enumeration value that specifies the command assigned to the bar items being sought.

#Returns

Type Description
BarItem[]

An array of BarItem objects that represent the bar items which are associated with the specified report command.

#Remarks

Every End-User Designer command represents either a toolbar button, or a menu item, or both a button and a corresponding menu item in the End-User Designer window. This method searches for all the bar items which execute the specified command (or which are associated with it) and returns an array consisting of these items. If no bar items with the specified command are found, then an empty array will be returned.

See Also