Rectangle Constructor (Point, Size)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: