SpreadsheetControl.RemoveShortcutKey(Keys, Keys) Method

Removes a command shortcut.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v21.1.dll


public void RemoveShortcutKey(
    Keys key,
    Keys modifier


Name Type Description
key Keys

A Keys enumeration member specifying a shortcut key.

modifier Keys

A Keys enumeration member specifying a modifier key.


The SpreadsheetControl’s shortcuts should be removed after the control is initialized. The following example demonstrates how to remove the Ctrl+O shortcut, which allows users to load a document:

spreadsheetControl.RemoveShortcutKey(System.Windows.Forms.Keys.O, System.Windows.Forms.Keys.Control);

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

See Also