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

BarShortcut(Keys) Constructor

Creates an instance of the BarShortcut class with a predefined first key combination.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public BarShortcut(
    Keys key
)

#Parameters

Name Type Description
key Keys

A System.Windows.Forms.Keys enumeration value or a bitwise combination of these values that specify the first key combination. This value is assigned to the BarShortcut.Key property.

#Remarks

Use this constructor to create a new shortcut object with the specified first key combination. If you need to specify two key combinations for this shortcut, you can use the constructor with two parameters. The created shortcut can be assigned to the BarItem.ItemShortcut property of the desired item.

See Also