Rect.Rect(float, float, float, float) 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(
  float x, 
  float y, 
  float width, 
  float height
)

Parameters

x

Type: float

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

y

Type: float

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

width

Type: float

The width of the rectangle.

height

Type: float

The height of the rectangle.

Remarks

JavaScript:  In JavaScript, a Rect is an object with four data properties. Use the syntax shown in Rect to set values. You can't call this constructor in JavaScript.

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

Metadata

Platform.winmd

See also

Rect
Rect constructor (C# and Visual Basic)

 

 

Show:
© 2014 Microsoft