Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft