Class ChartLegendItem
A legend entry. Entries with a SeriesIndex can be toggled to hide that series.
public sealed record ChartLegendItem : IEquatable<ChartLegendItem>
- Inheritance
-
ChartLegendItem
- Implements
- Inherited Members
Constructors
ChartLegendItem(string, ChartColor, int?, bool)
A legend entry. Entries with a SeriesIndex can be toggled to hide that series.
public ChartLegendItem(string Label, ChartColor Color, int? SeriesIndex = null, bool Hidden = false)
Parameters
LabelstringColorChartColorSeriesIndexint?Hiddenbool
Properties
Color
public ChartColor Color { get; init; }
Property Value
Hidden
public bool Hidden { get; init; }
Property Value
Label
public string Label { get; init; }
Property Value
SeriesIndex
public int? SeriesIndex { get; init; }
Property Value
- int?
Methods
Deconstruct(out string, out ChartColor, out int?, out bool)
public void Deconstruct(out string Label, out ChartColor Color, out int? SeriesIndex, out bool Hidden)
Parameters
LabelstringColorChartColorSeriesIndexint?Hiddenbool
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ChartLegendItem?)
public bool Equals(ChartLegendItem? other)
Parameters
otherChartLegendItem
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChartLegendItem?, ChartLegendItem?)
public static bool operator ==(ChartLegendItem? left, ChartLegendItem? right)
Parameters
leftChartLegendItemrightChartLegendItem
Returns
operator !=(ChartLegendItem?, ChartLegendItem?)
public static bool operator !=(ChartLegendItem? left, ChartLegendItem? right)
Parameters
leftChartLegendItemrightChartLegendItem