Back to Devexpress

SankeySelectedItemsChangingEventArgs.Action Property

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

latest3.7 KB
Original Source

SankeySelectedItemsChangingEventArgs.Action Property

Returns an action that is applied to the SelectedItems collection.

Namespace : DevExpress.XtraCharts.Sankey

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public SelectedItemsChangedAction Action { get; }
vb
Public ReadOnly Property Action As SelectedItemsChangedAction

Property Value

TypeDescription
SelectedItemsChangedAction

The action that is applied to the SelectedItems collection.

|

Available values:

NameDescription
Reset

All items were cleared from the collection.

| | Add |

A selected chart element (a series or series point) and business data objects (in the case of data binding) were added to the collection.

| | Remove |

A selected chart element (a series or series point) and business data objects (in the case of data binding) were completely removed from the collection.

| | Replace |

A selected chart element (a series or series point) or several selected elements including business data objects (in the case of data binding) was (were) replaced with the collection.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Action 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#L60

csharp
void Sankey_SelectedItemsChanging(object sender, SankeySelectedItemsChangingEventArgs e) {
    if(e.Action == DevExpress.XtraCharts.SelectedItemsChangedAction.Reset) {
        e.Cancel = true;

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

vb
Private Sub Sankey_SelectedItemsChanging(ByVal sender As Object, ByVal e As SankeySelectedItemsChangingEventArgs)
    If e.Action = DevExpress.XtraCharts.SelectedItemsChangedAction.Reset Then
        e.Cancel = True

See Also

SankeySelectedItemsChangingEventArgs Class

SankeySelectedItemsChangingEventArgs Members

DevExpress.XtraCharts.Sankey Namespace