[]
Initializes a new instance of the Rect structure.
public Rect(Point location, Size size)
Type | Name | Description |
---|---|---|
Point | location | The location (coordinates of the top left corner) of the rectangle. |
Size | size | The size of the rectangle. |
Initializes a new instance of the Rect structure.
public Rect(double x, double y, double width, double height)
Type | Name | Description |
---|---|---|
double | x | The X coordinate of the left side of the rectangle. |
double | y | The Y coordinate of the top side of the rectangle. |
double | width | The width of the rectangle. |
double | height | The height of the rectangle. |
public Rect(Point point1, Point point2)
Type | Name | Description |
---|---|---|
Point | point1 | The first point that the new rectangle must contain. |
Point | point2 | The second point that the new rectangle must contain. |