Skip to main content

ChartLegendItemActivatedEventArgs Class

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts
public class ChartLegendItemActivatedEventArgs

Inheritance: EventArgs -> ChartLegendItemActivatedEventArgs

Constructors​

ChartLegendItemActivatedEventArgs Constructor​

Initializes a new instance of Avalonia.Controls.Charts.ChartLegendItemActivatedEventArgs.

public ChartLegendItemActivatedEventArgs(Avalonia.Controls.Charts.ChartLegendItem item, int index)

Parameters​

item Avalonia.Controls.Charts.ChartLegendItem

The activated legend item.

index int

The index of the activated item within the legend.

Properties​

NameDescription
IndexGets the index of the activated item within the legend.
ItemGets the activated legend item.

Index Property​

Gets the index of the activated item within the legend.

public int Index { get; set; }

Item Property​

Gets the activated legend item.

public Avalonia.Controls.Charts.ChartLegendItem Item { get; set; }