Struct ChartColor
A themed color reference: a ChartColorRole and, for Series, the slot.
public readonly struct ChartColor : IEquatable<ChartColor>
- Implements
- Inherited Members
Constructors
ChartColor(ChartColorRole, int)
A themed color reference: a ChartColorRole and, for Series, the slot.
public ChartColor(ChartColorRole Role, int Slot = 0)
Parameters
RoleChartColorRoleThe job the color does.
SlotintThe zero-based series slot. Ignored by every role except Series.
Properties
Axis
Gets the color for baselines and axis lines.
public static ChartColor Axis { get; }
Property Value
Grid
Gets the color for gridlines.
public static ChartColor Grid { get; }
Property Value
Ink
Gets the high-contrast ink color.
public static ChartColor Ink { get; }
Property Value
Negative
Gets the color for an unfavourable change.
public static ChartColor Negative { get; }
Property Value
Positive
Gets the color for a favourable change.
public static ChartColor Positive { get; }
Property Value
Role
The job the color does.
public ChartColorRole Role { get; init; }
Property Value
Sequential
Gets the single hue used to show magnitude through opacity.
public static ChartColor Sequential { get; }
Property Value
Slot
The zero-based series slot. Ignored by every role except Series.
public int Slot { get; init; }
Property Value
Total
Gets the color for a neutral summary value.
public static ChartColor Total { get; }
Property Value
Track
Gets the color for an unfilled track.
public static ChartColor Track { get; }
Property Value
Methods
Deconstruct(out ChartColorRole, out int)
public void Deconstruct(out ChartColorRole Role, out int Slot)
Parameters
RoleChartColorRoleSlotint
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(ChartColor)
public bool Equals(ChartColor other)
Parameters
otherChartColor
Returns
GetHashCode()
public override int GetHashCode()
Returns
Series(int)
Gets the categorical color for a series. A series keeps its slot when others are hidden.
public static ChartColor Series(int slot)
Parameters
slotintThe zero-based series slot.
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChartColor, ChartColor)
public static bool operator ==(ChartColor left, ChartColor right)
Parameters
leftChartColorrightChartColor
Returns
operator !=(ChartColor, ChartColor)
public static bool operator !=(ChartColor left, ChartColor right)
Parameters
leftChartColorrightChartColor