Contains a set of four floating-point numbers that represent the location and size of a rectangle.
public value struct Rect
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:
Width and Height cannot be negative.X and Y can be negative, with the result that the Rect definition is outside the coordinate frame of reference unless there is additional translation.X and Y can be 0. A value of 0 is also valid for Width or Height. However, if a Rect with a value of 0 for either Width or Height is applied to a RectangleGeometry, the resulting RectangleGeometry does not render.X, Y, Width and Height can be non-integer values in terms of permitted values. However, you typically use integer values.Namespace: Windows.Foundation
Metadata: windows.winmd