Skip to main content

Struct LayoutRect

Namespace: VelloSharp.Charting.Layout
Assembly: VelloSharp.Charting.dll

Represents a rectangle in device independent units.

public readonly record struct LayoutRect : IEquatable<LayoutRect>

Implements​

IEquatable<LayoutRect>

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors​

LayoutRect(double, double, double, double)​

Represents a rectangle in device independent units.

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

Parameters​

X double

Y double

Width double

Height double

Properties​

Bottom​

public double Bottom { get; }

Property Value​

double

Empty​

public static LayoutRect Empty { get; }

Property Value​

LayoutRect

Height​

public double Height { get; init; }

Property Value​

double

IsEmpty​

public bool IsEmpty { get; }

Property Value​

bool

Right​

public double Right { get; }

Property Value​

double

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​

Inflate(double, double)​

public LayoutRect Inflate(double horizontal, double vertical)

Parameters​

horizontal double

vertical double

Returns​

LayoutRect