This documentation is archived and is not being maintained.

Size.IsEmpty Property

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

Namespace: System.Windows
Assembly: WindowsBase (in windowsbase.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool IsEmpty { get; }
/** @property */
public boolean get_IsEmpty ()

public function get IsEmpty () : boolean

You cannot use this property in XAML.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: