Rectangle Constructor(Point,Size)
In This Topic
Initializes a new instance of the
Rect struct with the specified coordinates and size.
Syntax
'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)
public Rectangle(
Point ,
Size
)
Parameters
- location
- The coordinates of the upper-left corner of the rectangle.
- size
- The size of the rectangle.
See Also