Rect structure (windows.foundation.h)

Contains a set of four floating-point numbers that represent the location and size of a rectangle.

Syntax

typedef struct Rect {
  FLOAT X;
  FLOAT Y;
  FLOAT Width;
  FLOAT Height;
} Rect;

Members

X

Type: float

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

Y

Type: float

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

Width

Type: float

The width of the rectangle.

Height

Type: float

The height of the rectangle.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header windows.foundation.h

See also

CreateRect

CreateRectArray

IPropertyValue::GetRect

IPropertyValue::GetRectArray