Skip to main content

ChartSelectionChangedEventArgs Class

Definition

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Provides immutable-by-convention snapshots for the SelectionChanged event.

public class ChartSelectionChangedEventArgs

Inheritance: EventArgs -> ChartSelectionChangedEventArgs

Constructors

NameDescription
ChartSelectionChangedEventArgsCreates a new instance of ChartSelectionChangedEventArgs.

ChartSelectionChangedEventArgs Constructor

Creates a new instance of ChartSelectionChangedEventArgs.

public ChartSelectionChangedEventArgs(System.Collections.IList newSelection, System.Collections.IList oldSelection)

Parameters

newSelection System.Collections.IList

oldSelection System.Collections.IList

Properties

NameDescription
NewIndexesGets a snapshot of the selected indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangedEventArgs.NewSelection and is meaningful only when the sender selects data points by index.
NewSelectionGets a snapshot of the items that are currently selected.
OldIndexesGets a snapshot of the previously selected indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangedEventArgs.OldSelection and is meaningful only when the sender selects data points by index.
OldSelectionGets a snapshot of the items that were previously selected.

NewIndexes Property

Gets a snapshot of the selected indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangedEventArgs.NewSelection and is meaningful only when the sender selects data points by index.

public System.Collections.IList NewIndexes { get; set; }

NewSelection Property

Gets a snapshot of the items that are currently selected.

public System.Collections.IList NewSelection { get; set; }

OldIndexes Property

Gets a snapshot of the previously selected indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangedEventArgs.OldSelection and is meaningful only when the sender selects data points by index.

public System.Collections.IList OldIndexes { get; set; }

OldSelection Property

Gets a snapshot of the items that were previously selected.

public System.Collections.IList OldSelection { get; set; }