Back to Devexpress

SelectedItemsChangingEventArgs.Cancel Property

corelibraries-devexpress-dot-xtracharts-dot-selecteditemschangingeventargs-6f089527.md

latest3.5 KB
Original Source

SelectedItemsChangingEventArgs.Cancel Property

Gets or sets the value identifying whether the selection change is canceled.

Namespace : DevExpress.XtraCharts

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 selection change is canceled; otherwise false.

|

The following code snippets (auto-collected from DevExpress Examples) contain references 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/CS/TutorialsCustomItems/CustomItems/FunnelItemControlProvider.cs#L81

csharp
if(e.NewItems.Count > 0 && selectedSeriesPoint.Count == 0)
    e.Cancel = true;
if (Interactivity.MasterFilterMode == DashboardItemMasterFilterMode.Single && selectedSeriesPoint.Count == 0)

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/Funnel/FunnelItemControlProvider.cs#L76

csharp
if(e.Action == SelectedItemsChangedAction.Reset)
    e.Cancel = true;
List<DashboardFlatDataSourceRow> selectedSeriesPoint = e.NewItems.OfType<DashboardFlatDataSourceRow>().ToList();

winforms-dashboard-custom-items/VB/TutorialsCustomItems/CustomItems/FunnelItemControlProvider.vb#L81

vb
If e.NewItems.Count > 0 AndAlso selectedSeriesPoint.Count = 0 Then
    e.Cancel = True
End If

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/Funnel/FunnelItemControlProvider.vb#L84

vb
If e.Action = SelectedItemsChangedAction.Reset Then
    e.Cancel = True
End If

See Also

SelectedItemsChangingEventArgs Class

SelectedItemsChangingEventArgs Members

DevExpress.XtraCharts Namespace