IsEmpty Property
Collapse the table of content
Expand the table of content

Size.IsEmpty Property

 

Gets a value that indicates whether this instance of Size is Empty.

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

public bool IsEmpty { get; }

Property Value

Type: System.Boolean

true if this instance of size is Empty; otherwise false.

Even if Size is 0, the instance of Size will still contain a 0 or 1, indicating a zero- or one-dimensional set of points. Therefore, do not use this property to check for a 0 area.

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