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.GetBarItemByCommand(CommandID) Method

OBSOLETE

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

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

Namespace: DevExpress.XtraReports.UserDesigner

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

NuGet Package: DevExpress.Win.Reporting

#Declaration

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

#Parameters

Name Type Description
commandID CommandID

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

#Returns

Type Description
DevExpress.XtraReports.UserDesigner.CommandBarItem

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

#Remarks

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

See Also