Rect.IsEmpty Property

July 28, 2014

Gets a value that indicates whether the rectangle is the Empty rectangle.

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

public bool IsEmpty { get; }

Property Value

Type: System.Boolean
true if the rectangle is the Empty rectangle; otherwise, false.

Do not use this property to test for an area (height times width) of 0; a rectangle with area of 0 is not necessarily the Empty rectangle. For more information, see Empty.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft