Rect Property
Collapse the table of content
Expand the table of content

RectangleGeometry.Rect Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the dimensions of the rectangle.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public Rect Rect { get; set; }
<RectangleGeometry Rect="Rect"/>

Property Value

Type: System.Windows.Rect
The Rect structure that describes the position and size of the rectangle. The default is null.

Dependency property identifier field: RectProperty

The XAML attribute syntax for Rect is in the form Rect="x,y,width,height". For details on the Rect attribute syntax, see Rect.

The x,y origin point and the width,height dimensions of a Rect can all be specified as negative values. For details, see Rect.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft