Size::Empty method (gdiplustypes.h)

The Size::Empty method determines whether a Size object is empty.

Syntax

BOOL Empty();

Return value

Type: BOOL

If the Width and Height data members are both equal to zero, this method returns TRUE; otherwise, it returns FALSE.

Remarks

A Size object is defined as empty if the Width and Height data members are both equal to zero.

Examples

Rect rect(50, 50, 100, 200);
Size size;

rect.Inflate(-50, -100);
rect.GetSize(&size);

if(size.Empty())
{
   // The width and height are both 0.
}

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplustypes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Rect

Size

SizeF