ChartRectangle Struct

A rectangle.

public readonly struct ChartRectangle : IEquatable<ChartRectangle>
Implements

Constructors

NameDescription
ChartRectangle(double, double, double, double)A rectangle.

ChartRectangle(double, double, double, double)

A rectangle.

public ChartRectangle(double X, double Y, double Width, double Height)

Parameters

X double
The left edge.
Y double
The top edge.
Width double
The width.
Height double
The height.

Properties

NameDescription
BottomGets the bottom edge.
CenterXGets the x coordinate of the center.
CenterYGets the y coordinate of the center.
HeightThe height.
RightGets the right edge.
WidthThe width.
XThe left edge.
YThe top edge.

Gets the bottom edge.

public double Bottom { get; }

Property value

double

Gets the x coordinate of the center.

public double CenterX { get; }

Property value

double

Gets the y coordinate of the center.

public double CenterY { get; }

Property value

double

The height.

public double Height { get; init; }

Property value

double

The width.

public double Width { get; init; }

Property value

double

The left edge.

public double X { get; init; }

Property value

double

The top edge.

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, double, double, double)
Equals(ChartRectangle)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, double, double, double)

public void Deconstruct(out double X, out double Y, out double Width, out double Height)

Parameters

X double
Y double
Width double
Height double

No documentation is available.

Equals overloads

Equals(ChartRectangle)

public bool Equals(ChartRectangle other)
Parameters
other ChartRectangle
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ChartRectangle, ChartRectangle)
operator !=(ChartRectangle, ChartRectangle)

operator ==(ChartRectangle, ChartRectangle)

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

Parameters

left ChartRectangle
right ChartRectangle

Returns

bool

No documentation is available.

operator !=(ChartRectangle, ChartRectangle)

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

Parameters

left ChartRectangle
right ChartRectangle

Returns

bool

No documentation is available.