Skip to main content

ISelectableChart Interface

Definition

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

Shared selection contract for chart components and layers.

public interface ISelectableChart

Methods

NameDescription
ClearSelectionClears the current selection.

ClearSelection Method

Clears the current selection.

public void ClearSelection()

Properties

NameDescription
IsSelectionEnabledGets whether selection is enabled.
SelectionBrushGets the brush used to highlight selected items.
SelectionModeGets the selection behavior (Single, Multiple, etc.).
SelectionStrokeGets the stroke brush used to outline selected items.
SelectionStrokeThicknessGets 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

NameDescription
SelectionChangedRaised after the selection changes, with snapshots of the applied and previous selections.
SelectionChangingRaised 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