Table of Contents

Class ChartRect

Namespace
TwBlazor.Charting
Assembly
TwBlazor.dll

A filled rectangle.

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

Constructors

ChartRect(double, double, double, double, ChartColor, ChartCorner, double, bool, string?)

A filled rectangle.

public ChartRect(double X, double Y, double Width, double Height, ChartColor Color, ChartCorner Corner = ChartCorner.None, double Opacity = 1, bool Gap = true, string? Title = null)

Parameters

X double
Y double
Width double
Height double
Color ChartColor
Corner ChartCorner
Opacity double
Gap bool
Title string

Properties

Color

public ChartColor Color { get; init; }

Property Value

ChartColor

Corner

public ChartCorner Corner { get; init; }

Property Value

ChartCorner

Gap

public bool Gap { get; init; }

Property Value

bool

Height

public double Height { get; init; }

Property Value

double

Opacity

public double Opacity { get; init; }

Property Value

double

Title

public string? Title { get; init; }

Property Value

string

Width

public double Width { get; init; }

Property Value

double

X

public double X { get; init; }

Property Value

double

Y

public double Y { get; init; }

Property Value

double

Methods

Deconstruct(out double, out double, out double, out double, out ChartColor, out ChartCorner, out double, out bool, out string?)

public void Deconstruct(out double X, out double Y, out double Width, out double Height, out ChartColor Color, out ChartCorner Corner, out double Opacity, out bool Gap, out string? Title)

Parameters

X double
Y double
Width double
Height double
Color ChartColor
Corner ChartCorner
Opacity double
Gap bool
Title string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartRect?)

public bool Equals(ChartRect? other)

Parameters

other ChartRect

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartRect?, ChartRect?)

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

Parameters

left ChartRect
right ChartRect

Returns

bool

operator !=(ChartRect?, ChartRect?)

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

Parameters

left ChartRect
right ChartRect

Returns

bool