10.1.160 Rect

(usage)

<Rect> string </Rect>

(description)

Describes the width, height, and location of a rectangle.

[types assignable to]

Rect x:Object

(used by)

ContextMenu ContextMenuService FixedPage ImageDrawing Popup Rect RectangleGeometry RectKeyFrame SystemParameters TileBrush ToolTip ToolTipService VideoDrawing Viewport3DVisual

[is nullable]

False

[text syntax]

RectSyntax

(properties)

Height

x:Double

(description)

The height of the rectangle.

Location

Point

(description)

The position of the top-left corner of the rectangle.

Size

Size

(description)

The width and height of the rectangle.

Width

x:Double

(description)

The width of the rectangle.

X

x:Double

(description)

The x-axis value of the left side of the rectangle.

Y

x:Double

(description)

The y-axis value of the top side of the rectangle.

(static properties)

Empty

Rect

(description)

A special value that represents a rectangle with no position or area.