Table of Contents

Struct ChartBand

Namespace
TwBlazor.Charting
Assembly
TwBlazor.dll

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

Count int

The number of slots.

Start double

Where the first slot begins, as a percentage of the axis.

End double

Where the last slot ends, as a percentage of the axis.

Properties

Count

The number of slots.

public int Count { get; init; }

Property Value

int

End

Where the last slot ends, as a percentage of the axis.

public double End { get; init; }

Property Value

double

Start

Where the first slot begins, as a percentage of the axis.

public double Start { get; init; }

Property Value

double

Step

Gets the size of one slot.

public double Step { get; }

Property Value

double

Methods

Center(int)

Gets the center of a slot.

public double Center(int index)

Parameters

index int

The zero-based slot index.

Returns

double

Deconstruct(out int, out double, out double)

public void Deconstruct(out int Count, out double Start, out double End)

Parameters

Count int
Start double
End double

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(ChartBand)

public bool Equals(ChartBand other)

Parameters

other ChartBand

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartBand, ChartBand)

public static bool operator ==(ChartBand left, ChartBand right)

Parameters

left ChartBand
right ChartBand

Returns

bool

operator !=(ChartBand, ChartBand)

public static bool operator !=(ChartBand left, ChartBand right)

Parameters

left ChartBand
right ChartBand

Returns

bool