Rect.IsEmpty Property


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

 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

Property Value


true if the rectangle is the Empty rectangle; otherwise, false.


This struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. For more information, see Rect in the UWP API reference.

For more information about this member, see <System.Windows.Rect.IsEmpty?displayProperty=nameWithType> in the .NET Framework API reference.

Applies to