ChartLegendItem Class
Definition
Represents a single item in a chart legend.
public class ChartLegendItem
Constructors
| Name | Description |
|---|---|
| ChartLegendItem | No summary available. |
ChartLegendItem Constructor
public ChartLegendItem()
Properties
| Name | Description |
|---|---|
| Fill | Gets or sets the fill brush for the legend marker. |
| IsVisible | Gets or sets whether this legend item is visible. |
| MarkerShape | Gets or sets the marker shape. |
| SecondaryFill | Gets or sets the secondary fill brush for composite legend markers. |
| SecondaryStroke | Gets or sets the secondary stroke brush for composite legend markers. |
| SeriesIndex | Gets or sets the associated series index. |
| Source | Gets or sets the source object (e.g., Series or TechnicalIndicator) representing this item. |
| Stroke | Gets or sets the stroke brush for the legend marker. |
| Text | Gets or sets the display text for the legend item. |
| ToggleAction | Gets 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
| Name | Description |
|---|---|
| PropertyChanged | Occurs when a property value changes. |
PropertyChanged Event
Occurs when a property value changes.
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged