.NET Framework Class Library for Silverlight
RectangleGeometry..::.Rect Property

Gets or sets the dimensions of the rectangle.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
Syntax

Visual Basic (Declaration)
Public Property Rect As Rect
    Get
    Set
Visual Basic (Usage)
Dim instance As RectangleGeometry
Dim value As Rect

value = instance.Rect

instance.Rect = value
C#
public Rect Rect { get; set; }
XAML Attribute Usage
<RectangleGeometry Rect="Rect"/>

Property Value

Type: System.Windows..::.Rect
The Rect structure that describes the position and size of the rectangle. The default is nullNothingnullptra null reference (Nothing in Visual Basic).
Remarks

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.

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources

Tags :


Page view tracker