[]
Creates a Rect structure based on the coordinates of its top-left and bottom-right corners.
public static Rect FromLTRB(double left, double top, double right, double bottom)
Type | Name | Description |
---|---|---|
double | left | The X coordinate of the upper-left corner of the rectangular region. |
double | top | The Y coordinate of the upper-left corner of the rectangular region. |
double | right | The X coordinate of the lower-right corner of the rectangular region. |
double | bottom | The Y coordinate of the lower-right corner of the rectangular region. |
Type | Description |
---|---|
Rect | The newly created Rect structure. |