Rect.IsEmpty Property

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

Namespace:  Windows.Foundation
Assembly:  System.Runtime.WindowsRuntime (in System.Runtime.WindowsRuntime.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.

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft