Skip to main content

Windows Dev Center

Rect structure

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.h

IDL

Windows.Foundation.idl

See also

IPropertyValue::GetRect
IPropertyValue::GetRectArray
CreateRect
CreateRectArray