Back to Devexpress

BarItem.ShortcutKeyDisplayString Property

windowsforms-devexpress-dot-xtrabars-dot-baritem-f3e97d8b.md

latest2.3 KB
Original Source

BarItem.ShortcutKeyDisplayString Property

Gets or sets a custom display string for the shortcut assigned to the item via the BarItem.ItemShortcut property.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("Behavior")]
public virtual string ShortcutKeyDisplayString { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue("")>
Public Overridable Property ShortcutKeyDisplayString As String

Property Value

TypeDefaultDescription
StringString.Empty

A string that specifies a custom display string for the item’s shortcut.

|

Remarks

The BarItem.ItemShortcut property allows you to assign a shortcut to the item. To provide a custom display string for the shortcut, use the ShortcutKeyDisplayString property.

Item shortcuts are displayed for items when an item is displayed within a popup menu or sub-menu, and the menu’s MenuDrawMode property is set to SmallImagesText.

The ShortcutKeyDisplayString property is synchronized with the BarShortcut.DisplayString property of the BarItemLink.ItemShortcut object.

See Also

ItemShortcut

BarCustomContainerItem.MenuDrawMode

PopupMenuBase.MenuDrawMode

BarItem Class

BarItem Members

DevExpress.XtraBars Namespace