ISelectableChart Interface
Definition
Shared selection contract for chart components and layers.
public interface ISelectableChart
Methods
| Name | Description |
|---|---|
| ClearSelection | Clears the current selection. |
ClearSelection Method
Clears the current selection.
public void ClearSelection()
Properties
| Name | Description |
|---|---|
| IsSelectionEnabled | Gets whether selection is enabled. |
| SelectionBrush | Gets the brush used to highlight selected items. |
| SelectionMode | Gets the selection behavior (Single, Multiple, etc.). |
| SelectionStroke | Gets the stroke brush used to outline selected items. |
| SelectionStrokeThickness | Gets the stroke thickness for the selection outline. |
IsSelectionEnabled Property
Gets whether selection is enabled.
public bool IsSelectionEnabled { get; set; }
SelectionBrush Property
Gets the brush used to highlight selected items.
public Avalonia.Media.IBrush SelectionBrush { get; set; }
SelectionMode Property
Gets the selection behavior (Single, Multiple, etc.).
public Avalonia.Controls.Charts.ChartSelectionMode SelectionMode { get; set; }
SelectionStroke Property
Gets the stroke brush used to outline selected items.
public Avalonia.Media.IBrush SelectionStroke { get; set; }
SelectionStrokeThickness Property
Gets the stroke thickness for the selection outline.
public double SelectionStrokeThickness { get; set; }
Events
| Name | Description |
|---|---|
| SelectionChanged | Raised after the selection changes, with snapshots of the applied and previous selections. |
| SelectionChanging | Raised before the selection changes. Handlers may cancel the change or edit the requested selection in the event args before it is applied. |
SelectionChanged Event
Raised after the selection changes, with snapshots of the applied and previous selections.
public event EventHandler<Avalonia.Controls.Charts.ChartSelectionChangedEventArgs> SelectionChanged
SelectionChanging Event
Raised before the selection changes. Handlers may cancel the change or edit the requested selection in the event args before it is applied.
public event EventHandler<Avalonia.Controls.Charts.ChartSelectionChangingEventArgs> SelectionChanging