Rect Structure

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

Syntax

public value struct Rect  

Remarks

Rect values and how they are interpreted by properties

Size is a similar structure that uses the same metaphor of specifying a height and width. However, a Rect specifies an origin point, whereas a Size does not. Typically Rect is used for graphics library APIs, and Size is used for UI presentation and layout.

The typical behavior of a Rect value as it is interpreted by properties follows these principles:

Requirements

Namespace: Windows.Foundation

Metadata: windows.winmd

See also

Reference

Rect Members

Windows.Foundation Namespace