Back to Devexpress

AccordionControlElement.ShortcutKey Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordioncontrolelement-fa7a1389.md

latest2.0 KB
Original Source

AccordionControlElement.ShortcutKey Property

Gets or sets the BarShortcut that invokes the element’s Click event.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Appearance")]
public BarShortcut ShortcutKey { get; set; }
vb
<DXCategory("Appearance")>
Public Property ShortcutKey As BarShortcut

Property Value

TypeDescription
BarShortcut

A BarShortcut that invokes the element’s Click event.

|

Remarks

Use the ShortcutKey property to assign a shortcut to an Accordion element. A shortcut assigned to an Accordion element has priority over global shortcuts.

csharp
accordionControlElement1.ShortcutKey = new DevExpress.XtraBars.BarShortcut(Keys.J);
vb
accordionControlElement1.ShortcutKey = New DevExpress.XtraBars.BarShortcut(Keys.J)

Note

If the same shortcut is assigned to a Ribbon/Bar element, the shortcut invokes the Ribbon/Bar element’s functionality.

See Also

ShortcutKeyDisplayString

AccordionControlElement Class

AccordionControlElement Members

DevExpress.XtraBars.Navigation Namespace