DomRect Class

https://drafts.fxtf.org/geometry/#domrect

public class DomRect : DomRectReadOnly
Inheritance
DomRectReadOnly DomRect

Constructors

NameDescription
DomRect(double, double, double, double)Creates a mutable rectangle with the given origin and size.

DomRect(double, double, double, double)

DomPoint.cs

Creates a mutable rectangle with the given origin and size.

public DomRect(double x = 0d, double y = 0d, double width = 0d, double height = 0d)

Properties

NameDescription
HeightGets or sets the height of the rectangle.
WidthGets or sets the width of the rectangle.
XGets or sets the X coordinate of the origin of the rectangle.
YGets or sets the Y coordinate of the origin of the rectangle.

Gets or sets the height of the rectangle.

public new virtual double Height { get; set; }

Gets or sets the width of the rectangle.

public new virtual double Width { get; set; }

Gets or sets the X coordinate of the origin of the rectangle.

public new virtual double X { get; set; }

Gets or sets the Y coordinate of the origin of the rectangle.

public new virtual double Y { get; set; }

Methods

NameDescription
FromRect(DomRectInit?)Creates a mutable rectangle from the origin and size of the given dictionary.

FromRect(DomRectInit?)

DomPoint.cs

Creates a mutable rectangle from the origin and size of the given dictionary.

public new static DomRect FromRect(DomRectInit? other = null)