The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Rect.Empty Property


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

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public static Rect Empty { get; }

Property Value

Type: System.Windows.Rect

The empty rectangle, which has X and Y property values of PositiveInfinity, and has Width and Height property values of NegativeInfinity.

Avoid mathematical computations involving empty rectangles. Because both X and Y are infinite values, processor operations are severely impaired by these operations. Comparisons involving these values will not affect application performance.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft