SizeF::Empty method (gdiplustypes.h)
The SizeF::Empty method determines whether a SizeF 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 SizeF object is defined as empty if the Width and Height data members are both equal to zero.
Examples
RectF rect(50.0f, 50.0f, 100.0f, 200.0f);
SizeF size;
rect.Inflate(-50.0f, -100.0f);
rect.GetSize(&size);
if(size.Empty())
{
// The width and height are both 0.
}
Requirements
Requirement | Value |
---|---|
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 |