[]
Initializes a new instance of the Rect structure.
public Rect(Point location, Size size)
Public Sub New(location As Point, size As 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)
Public Sub New(x As Double, y As Double, width As Double, height As Double)
| 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)
Public Sub New(point1 As Point, point2 As Point)
| 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. |