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.Key Property

Gets the first key combination of a sequence.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public Keys Key { get; }

#Property Value

Type Description
Keys

A System.Windows.Forms.Keys enumeration value or a bitwise combination of these values specifying the first key combination in a sequence.

#Remarks

The BarShortcut object allows you to set up to two key combinations. If both are set and the object is assigned to the BarItem.ItemShortcut property of an item, end-users must consecutively press the first and the second combination to use the shortcut.

If you need to change any key combination in the sequence, recreate the BarShortcut object with the desired parameters.

See Also