Back to Devexpress

RichEditControl.RemoveShortcutKey(Keys, Keys, Boolean) Method

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-dot-removeshortcutkey-x28-system-dot-windows-dot-forms-dot-keys-system-dot-windows-dot-forms-dot-keys-system-dot-boolean-x29.md

latest2.4 KB
Original Source

RichEditControl.RemoveShortcutKey(Keys, Keys, Boolean) Method

Removes a command shortcut for all RichEdit views.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.XtraRichEdit.v25.2.dll

NuGet Package : DevExpress.Win.RichEdit

Declaration

csharp
public void RemoveShortcutKey(
    Keys key,
    Keys modifier,
    bool updateToolTip
)
vb
Public Sub RemoveShortcutKey(
    key As Keys,
    modifier As Keys,
    updateToolTip As Boolean
)

Parameters

NameTypeDescription
keyKeys

A Keys enumeration member specifying a shortcut key.

| | modifier | Keys |

A Keys enumeration member specifying a modifier key.

| | updateToolTip | Boolean |

True to modify a tooltip of the BarItem to which a command is assigned to remove a reference to the shortcut key; otherwise, false.

|

Remarks

The RemoveShortcutKey method override enables you to modify a tooltip of the bar item (the BarItem.SuperTip property) in the RichEdit UI so that it displays a correct shortcut information. For this, set the updateToolTip parameter to true.

To assign a command shortcut, use the RichEditControl.AssignShortcutKeyToCommand method.

See Also

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace