Rect.IsEmpty Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top