ITextFont2::IsEqual2 method

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

pFont [in]

Type: ITextFont2*

The text font object to compare against.

pB [out]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextFont2
ITextFont::IsEqual

 

 

Community Additions

ADD
Show:
© 2014 Microsoft