Skip to main content
Bar

BarShortcut(Shortcut) Constructor

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public BarShortcut(
    Shortcut shortcut
)

Parameters

Name Type Description
shortcut Shortcut

A System.Windows.Forms.Shortcut enumeration value specifying the first key combination. This value is used to initialize the BarShortcut.Key property.

Remarks

Use this constructor to create a new shortcut object with the specified first key combination. The second key combination is set to Keys.Empty. The generated object can be assigned to the BarItem.ItemShortcut property of the desired item.

See Also