Rectangle Constructor(Point,Size)
Initializes a new instance of the
Rectangle struct with the specified coordinates and size.
'Declaration
Public Function New( _
ByVal As Point, _
ByVal As Size _
)
'Usage
Dim location As Point
Dim size As Size
Dim instance As New Rectangle(location, size)
Parameters
- location
- The coordinates of the upper-left corner of the rectangle.
- size
- The size of the rectangle.