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

Rect.Rect(Point, Size) constructor

Initializes a Rect structure based on an origin and size.

Syntax


public Rect(
  Point location, 
  Size size
)

Parameters

location

Type: Point

The origin of the new Rect.

size

Type: Size

The size of the new Rect.

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:
© 2016 Microsoft