corelibraries-devexpress-dot-xtracharts-dot-selecteditemschangingeventargs-6f089527.md
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
public bool Cancel { get; set; }
Public Property Cancel As Boolean
| Type | Description |
|---|---|
| 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
if(e.NewItems.Count > 0 && selectedSeriesPoint.Count == 0)
e.Cancel = true;
if (Interactivity.MasterFilterMode == DashboardItemMasterFilterMode.Single && selectedSeriesPoint.Count == 0)
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
If e.NewItems.Count > 0 AndAlso selectedSeriesPoint.Count = 0 Then
e.Cancel = True
End If
If e.Action = SelectedItemsChangedAction.Reset Then
e.Cancel = True
End If
See Also
SelectedItemsChangingEventArgs Class