[]
Initializes a new instance of the Rectangle struct with the specified coordinates.
public Rectangle(double left, double top, double right, double bottom)
Public Sub New(left As Double, top As Double, right As Double, bottom As Double)
Type | Name | Description |
---|---|---|
double | left | The x-coordinate of the upper-left corner of the rectangle. |
double | top | The y-coordinate of the upper-left corner of the rectangle. |
double | right | The x-coordinate of the lower-right corner of the rectangle. |
double | bottom | The y-coordinate of the lower-right corner of the rectangle. |
Initializes a new instance of the Rectangle struct with the specified coordinates and size.
public Rectangle(Point location, Size size)
Public Sub New(location As Point, size As Size)
Type | Name | Description |
---|---|---|
Point | location | The coordinates of the upper-left corner of the rectangle. |
Size | size | The size of the rectangle. |