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

Rect.Rect(Point, Point) constructor

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

Syntax


public Rect(
  Point point1, 
  Point point2
)

Parameters

point1

Type: Point

The first point that the new rectangle must contain.

point2

Type: Point

The second point that the new rectangle must contain.

Requirements (Windows 10 device family)

Device family

API contract

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Platform.winmd

Assembly

System.Runtime.WindowsRuntime.dll

See also

Rect

 

 

Show:
© 2017 Microsoft