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

Rect.Rect(Double, Double, Double, Double) constructor

Initializes a Rect structure that has the specified x-coordinate, y-coordinate, width, and height.

Syntax


public Rect(
  double x, 
  double y, 
  double width, 
  double height
)

Parameters

x

Type: System.Double

The x-coordinate of the top-left corner of the rectangle.

y

Type: System.Double

The y-coordinate of the top-left corner of the rectangle.

width

Type: System.Double

The width of the rectangle.

height

Type: System.Double

The height of the rectangle.

Remarks

The Rect constructor for C++/CX is basically the same but it uses the float/float32 type, not double/float64. See Rect(float,float,float,float).

Requirements (Windows 10 device family)

Device family

API contract

Namespace

Windows.Foundation

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

Assembly

System.Runtime.WindowsRuntime.dll

See also

Rect

 

 

Show:
© 2017 Microsoft