IsEmpty Property

Rect.IsEmpty Property

 

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

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.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 zero area; a rectangle with zero area is not necessarily the Empty rectangle. For more information, see the Empty property.

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