Table of Contents

Class ChartLegendItem

Namespace
TwBlazor.Charting
Assembly
TwBlazor.dll

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

Label string
Color ChartColor
SeriesIndex int?
Hidden bool

Properties

Color

public ChartColor Color { get; init; }

Property Value

ChartColor

Hidden

public bool Hidden { get; init; }

Property Value

bool

Label

public string Label { get; init; }

Property Value

string

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

Label string
Color ChartColor
SeriesIndex int?
Hidden bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartLegendItem?)

public bool Equals(ChartLegendItem? other)

Parameters

other ChartLegendItem

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartLegendItem?, ChartLegendItem?)

public static bool operator ==(ChartLegendItem? left, ChartLegendItem? right)

Parameters

left ChartLegendItem
right ChartLegendItem

Returns

bool

operator !=(ChartLegendItem?, ChartLegendItem?)

public static bool operator !=(ChartLegendItem? left, ChartLegendItem? right)

Parameters

left ChartLegendItem
right ChartLegendItem

Returns

bool