Size.IsEmpty Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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)

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