Skip to main content

ChartSelectionChangingEventArgs Class

Definition​

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

Provides data for the SelectionChanging event. Handlers may cancel the change or edit Avalonia.Controls.Charts.ChartSelectionChangingEventArgs.NewSelection before the owning chart commits it.

public class ChartSelectionChangingEventArgs

Inheritance: CancelEventArgs -> ChartSelectionChangingEventArgs

Constructors​

NameDescription
ChartSelectionChangingEventArgsCreates a new instance of ChartSelectionChangingEventArgs.

ChartSelectionChangingEventArgs Constructor​

Creates a new instance of ChartSelectionChangingEventArgs.

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

Parameters​

newSelection System.Collections.IList

oldSelection System.Collections.IList

Properties​

NameDescription
NewIndexesGets the editable requested indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangingEventArgs.NewSelection and is meaningful only when the sender selects data points by index.
NewSelectionGets the editable snapshot that represents the requested new selection.
OldIndexesGets a snapshot of the previous indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangingEventArgs.OldSelection and is meaningful only when the sender selects data points by index.
OldSelectionGets a snapshot of the previous selection.

NewIndexes Property​

Gets the editable requested indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangingEventArgs.NewSelection and is meaningful only when the sender selects data points by index.

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

NewSelection Property​

Gets the editable snapshot that represents the requested new selection.

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

OldIndexes Property​

Gets a snapshot of the previous indexes for index-based selection surfaces. This aliases Avalonia.Controls.Charts.ChartSelectionChangingEventArgs.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 previous selection.

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