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

Applies to Windows and Windows Phone

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.

Requirements

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:
© 2014 Microsoft. All rights reserved.