Struct ChartBand
Divides part of an axis into equal slots, one per category.
public readonly struct ChartBand : IEquatable<ChartBand>
- Implements
- Inherited Members
Constructors
ChartBand(int, double, double)
Divides part of an axis into equal slots, one per category.
public ChartBand(int Count, double Start = 0, double End = 100)
Parameters
CountintThe number of slots.
StartdoubleWhere the first slot begins, as a percentage of the axis.
EnddoubleWhere the last slot ends, as a percentage of the axis.
Properties
Count
The number of slots.
public int Count { get; init; }
Property Value
End
Where the last slot ends, as a percentage of the axis.
public double End { get; init; }
Property Value
Start
Where the first slot begins, as a percentage of the axis.
public double Start { get; init; }
Property Value
Step
Gets the size of one slot.
public double Step { get; }
Property Value
Methods
Center(int)
Gets the center of a slot.
public double Center(int index)
Parameters
indexintThe zero-based slot index.
Returns
Deconstruct(out int, out double, out double)
public void Deconstruct(out int Count, out double Start, out double End)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(ChartBand)
public bool Equals(ChartBand other)
Parameters
otherChartBand
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChartBand, ChartBand)
public static bool operator ==(ChartBand left, ChartBand right)
Parameters
Returns
operator !=(ChartBand, ChartBand)
public static bool operator !=(ChartBand left, ChartBand right)