SizeF::Equals method (gdiplustypes.h)
The SizeF::Equals method determines whether two SizeF objects are equal.
Syntax
BOOL Equals(
[in, ref] const SizeF & sz
);
Parameters
[in, ref] sz
Type: const SizeF
Reference to a SizeF object that is compared to this SizeF object.
Return value
Type: BOOL
If the Width and Height data members of the two SizeF objects are equal, this method returns TRUE; otherwise, it returns FALSE.
Remarks
Two SizeF objects are defined as equal if the Width and Height data members are equal.
Examples
RectF rect(50.0f, 30.0f, 200.0f, 100.0f);
SizeF desiredSizeF(200.0f, 100.0f);
SizeF rectSizeF;
// Get the size of the rectangle.
rect.GetSize(&rectSizeF);
if(rectSizeF.Equals(desiredSizeF))
{
// The rectangle has the wanted size.
}
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 |