IFont::IsEqual method (ocidl.h)

Compares this font object to another for equivalence.

Syntax

HRESULT IsEqual(
  [in] IFont *pFontOther
);

Parameters

[in] pFontOther

A pointer to the IFont interface on the font object to be compared to this font. The reference count of the object referred to by this pointer is not affected by the comparison operation.

Return value

The method supports the standard return value E_UNEXPECTED, as well as the following values.

Return code Description
S_OK
The two fonts are equivalent.
S_FALSE
The two fonts are not equivalent.
E_POINTER
The address in the pFontOther parameter is not valid. For example, it may be NULL.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ocidl.h

See also

IFont