Back to Devexpress

SankeySelectedItemsChangingEventArgs.Cancel Property

corelibraries-devexpress-dot-xtracharts-dot-sankey-dot-sankeyselecteditemschangingeventargs-19030da1.md

latest2.7 KB
Original Source

SankeySelectedItemsChangingEventArgs.Cancel Property

Indicates whether the SelectedItemsChanging event should be canceled.

Namespace : DevExpress.XtraCharts.Sankey

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
Boolean

true if the event is canceled; otherwise false.

|

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.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/SankeyChart/SankeyItemControlProvider.cs#L61

csharp
if(e.Action == DevExpress.XtraCharts.SelectedItemsChangedAction.Reset) {
    e.Cancel = true;
    return;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/SankeyChart/SankeyItemControlProvider.vb#L71

vb
If e.Action = DevExpress.XtraCharts.SelectedItemsChangedAction.Reset Then
    e.Cancel = True
    Return

See Also

SankeySelectedItemsChangingEventArgs Class

SankeySelectedItemsChangingEventArgs Members

DevExpress.XtraCharts.Sankey Namespace