ChartSelectionChangingEventArgs Class
Definition
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
Constructors
| Name | Description |
|---|---|
| ChartSelectionChangingEventArgs | Creates 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
| Name | Description |
|---|---|
| NewIndexes | 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. |
| NewSelection | Gets the editable snapshot that represents the requested new selection. |
| OldIndexes | 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. |
| OldSelection | Gets 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; }