DomRectReadOnly Class
https://drafts.fxtf.org/geometry/#domrectreadonly
public class DomRectReadOnlyConstructors
| Name | Description |
|---|---|
| DomRectReadOnly(double, double, double, double) | Creates a rectangle with the given origin and size. |
DomRectReadOnly(double, double, double, double)
DomPoint.csProperties
| Name | Description |
|---|---|
| Bottom | Gets the Y coordinate of the bottom edge of the rectangle. |
| Height | Gets the height of the rectangle. |
| Left | Gets the X coordinate of the left edge of the rectangle. |
| Right | Gets the X coordinate of the right edge of the rectangle. |
| Top | Gets the Y coordinate of the top edge of the rectangle. |
| Width | Gets the width of the rectangle. |
| X | Gets the X coordinate of the origin of the rectangle. |
| Y | Gets the Y coordinate of the origin of the rectangle. |
Bottom
DomPoint.csGets the Y coordinate of the bottom edge of the rectangle.
public double Bottom { get; }Height
DomPoint.csGets the height of the rectangle.
public double Height { get; }Left
DomPoint.csGets the X coordinate of the left edge of the rectangle.
public double Left { get; }Right
DomPoint.csGets the X coordinate of the right edge of the rectangle.
public double Right { get; }Top
DomPoint.csGets the Y coordinate of the top edge of the rectangle.
public double Top { get; }Width
DomPoint.csGets the width of the rectangle.
public double Width { get; }Gets the X coordinate of the origin of the rectangle.
public double X { get; }Gets the Y coordinate of the origin of the rectangle.
public double Y { get; }Methods
| Name | Description |
|---|---|
| FromRect(DomRectInit?) | Creates a read-only rectangle from the origin and size of the given dictionary. |
| ToJson() | Returns a dictionary representation of the rectangle, as used by JSON.stringify(). |
FromRect(DomRectInit?)
DomPoint.csCreates a read-only rectangle from the origin and size of the given dictionary.
public static DomRectReadOnly FromRect(DomRectInit? other = null)ToJson()
DomPoint.csReturns a dictionary representation of the rectangle, as used by JSON.stringify().
public DomRectInit ToJson()