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.v21.2.Extensions.dll

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