XRDesignBarManager.GetBarItemByCommand(CommandID) Method

Obsolete. Gets a bar item within the bar manager by its command.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v18.1.Extensions.dll


[Obsolete("The GetBarItemByCommand method is obsolete now. Use the GetBarItemsByReportCommand method instead.")]
public CommandBarItem GetBarItemByCommand(
    CommandID commandID


Type Name Description
CommandID commandID

A CommandID object which specifies the command to be executed by the bar item to find.


Type Description

A DevExpress.XtraReports.UserDesigner.CommandBarItem object that represents the bar item which executes the specified command.

The GetBarItemByCommand method is obsolete now. Use the XRDesignBarManager.GetBarItemsByReportCommand method instead.