Skip to main content
A newer version of this page is available. .
Bar

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.v19.2.dll

Declaration

public bool Cancel { get; set; }

Property Value

Type Description
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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Cancel property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also