Rectangle Constructor (Point, Size)

 

Initializes a new instance of the Rectangle class with the specified location and size.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
Rectangle(
	Point location,
	Size size
)

Parameters

location
Type: System.Drawing::Point

A Point that represents the upper-left corner of the rectangular region.

size
Type: System.Drawing::Size

A Size that represents the width and height of the rectangular region.

.NET Framework
Available since 1.1
Return to top
Show: