Rect Constructor
.NET Framework 4.5
Initializes a new instance of the Rect structure.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Rect(Size) | Initializes a new instance of the Rect structure that is of the specified size and is located at (0,0). |
|
Rect(Point, Point) | Initializes a new instance of the Rect structure that is exactly large enough to contain the two specified points. |
|
Rect(Point, Size) | Initializes a new instance of the Rect structure that has the specified top-left corner location and the specified width and height. |
|
Rect(Point, Vector) | Initializes a new instance of the Rect structure that is exactly large enough to contain the specified point and the sum of the specified point and the specified vector. |
|
Rect(Double, Double, Double, Double) | Initializes a new instance of the Rect structure that has the specified x-coordinate, y-coordinate, width, and height. |