Size.IsEmpty Property

 
System_CAPS_noteNote

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

Tests whether this Size structure has width and height of 0.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

[BrowsableAttribute(false)]
public bool IsEmpty { get; }

Property Value

Type: System.Boolean

This property returns true when this Size structure has both a width and height of 0; otherwise, false.

.NET Framework
Available since 1.1
Return to top
Show: