Back to Devexpress

ShortcutItemClickEventArgs.Cancel Property

windowsforms-devexpress-dot-xtrabars-dot-shortcutitemclickeventargs-49c227f6.md

latest1.8 KB
Original Source

ShortcutItemClickEventArgs.Cancel Property

Gets or sets whether to stop processing a pressed shortcut and so stop the bar item’s functionality from being invoked.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool Cancel { get; set; }
vb
Public Property Cancel As Boolean

Property Value

TypeDescription
Boolean

true if processing of the shortcut should be canceled; otherwise, false.

|

Remarks

Set the Cancel parameter to true to cancel processing of a shortcut and therefore prevent the item’s functionality from being invoked. This can be useful, for instance, if the shortcut should be directed to the currently focused control and not intercepted by the BarManager.

Otherwise, the Bar Manager will invoke the item’s functionality and the currently focused control on your form will not receive key presses.

See the BarManager.ShortcutItemClick event for more information.

See Also

ShortcutItemClick

ShortcutItemClickEventArgs Class

ShortcutItemClickEventArgs Members

DevExpress.XtraBars Namespace