Skip to main content

ChartLegendItem Class

Definition​

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

Represents a single item in a chart legend.

public class ChartLegendItem

Inheritance: object -> ChartLegendItem

Implements: INotifyPropertyChanged

Constructors​

NameDescription
ChartLegendItemNo summary available.

ChartLegendItem Constructor​

public ChartLegendItem()

Properties​

NameDescription
FillGets or sets the fill brush for the legend marker.
IsVisibleGets or sets whether this legend item is visible.
MarkerShapeGets or sets the marker shape.
SecondaryFillGets or sets the secondary fill brush for composite legend markers.
SecondaryStrokeGets or sets the secondary stroke brush for composite legend markers.
SeriesIndexGets or sets the associated series index.
SourceGets or sets the source object (e.g., Series or TechnicalIndicator) representing this item.
StrokeGets or sets the stroke brush for the legend marker.
TextGets or sets the display text for the legend item.
ToggleActionGets or sets an optional action that toggles the visibility represented by this legend item.

Fill Property​

Gets or sets the fill brush for the legend marker.

public Avalonia.Media.IBrush Fill { get; set; }

IsVisible Property​

Gets or sets whether this legend item is visible.

public bool IsVisible { get; set; }

MarkerShape Property​

Gets or sets the marker shape.

public Avalonia.Controls.Charts.LegendMarkerShape MarkerShape { get; set; }

SecondaryFill Property​

Gets or sets the secondary fill brush for composite legend markers.

public Avalonia.Media.IBrush SecondaryFill { get; set; }

SecondaryStroke Property​

Gets or sets the secondary stroke brush for composite legend markers.

public Avalonia.Media.IBrush SecondaryStroke { get; set; }

SeriesIndex Property​

Gets or sets the associated series index.

public int SeriesIndex { get; set; }

Source Property​

Gets or sets the source object (e.g., Series or TechnicalIndicator) representing this item.

public object Source { get; set; }

Stroke Property​

Gets or sets the stroke brush for the legend marker.

public Avalonia.Media.IBrush Stroke { get; set; }

Text Property​

Gets or sets the display text for the legend item.

public string Text { get; set; }

ToggleAction Property​

Gets or sets an optional action that toggles the visibility represented by this legend item.

public Action ToggleAction { get; set; }

Events​

NameDescription
PropertyChangedOccurs when a property value changes.

PropertyChanged Event​

Occurs when a property value changes.

public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged