Rect Constructor (Point, Point)
Collapse the table of content
Expand the table of content

Rect Constructor (Point, Point)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a Rect structure that is exactly large enough to contain the two specified points.

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

public Rect(
	Point point1,
	Point point2


Type: System.Windows.Point
The first point that the new rectangle must contain.
Type: System.Windows.Point
The second point that the new rectangle must contain.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2018 Microsoft