SpreadsheetControl.RemoveShortcutKey(Keys, Keys) Method
In This Article
Removes a command shortcut.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v24.2.dll
NuGet Package: DevExpress.Win.Spreadsheet
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
key | Keys | A System. |
modifier | Keys | A System. |
#Remarks
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