ITextFont2::IsEqual2 method (tom.h)
Determines whether this text font object has the same properties as the specified text font object.
Syntax
HRESULT IsEqual2(
[in] ITextFont2 *pFont,
[out] long *pB
);
Parameters
[in] pFont
Type: ITextFont2*
The text font object to compare against.
[out] pB
Type: long*
A tomBool value that is tomTrue if the font objects have the same properties, or tomFalse if they don't. This parameter can be NULL.
Return value
Type: HRESULT
If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.
Remarks
For two text font objects to be equal, both must belong to the same Text Object Model (TOM) object.
The ITextFont::IsEqual2 method ignores entries for which either font object has a tomUndefined value.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | tom.h |
DLL | Msftedit.dll |