Table of Contents

Class ChartLine

Namespace
TwBlazor.Charting
Assembly
TwBlazor.dll

A straight stroked line.

public sealed record ChartLine : IChartMark, IEquatable<ChartLine>
Inheritance
ChartLine
Implements
Inherited Members

Constructors

ChartLine(double, double, double, double, ChartColor, ChartStroke)

A straight stroked line.

public ChartLine(double X1, double Y1, double X2, double Y2, ChartColor Color, ChartStroke Stroke = ChartStroke.Hairline)

Parameters

X1 double
Y1 double
X2 double
Y2 double
Color ChartColor
Stroke ChartStroke

Properties

Color

public ChartColor Color { get; init; }

Property Value

ChartColor

Stroke

public ChartStroke Stroke { get; init; }

Property Value

ChartStroke

X1

public double X1 { get; init; }

Property Value

double

X2

public double X2 { get; init; }

Property Value

double

Y1

public double Y1 { get; init; }

Property Value

double

Y2

public double Y2 { get; init; }

Property Value

double

Methods

Deconstruct(out double, out double, out double, out double, out ChartColor, out ChartStroke)

public void Deconstruct(out double X1, out double Y1, out double X2, out double Y2, out ChartColor Color, out ChartStroke Stroke)

Parameters

X1 double
Y1 double
X2 double
Y2 double
Color ChartColor
Stroke ChartStroke

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartLine?)

public bool Equals(ChartLine? other)

Parameters

other ChartLine

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartLine?, ChartLine?)

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

Parameters

left ChartLine
right ChartLine

Returns

bool

operator !=(ChartLine?, ChartLine?)

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

Parameters

left ChartLine
right ChartLine

Returns

bool