ITextFont::CanChange method (tom.h)

Determines whether the font can be changed.

Syntax

HRESULT CanChange(
  [retval] long *pValue
);

Parameters

[retval] pValue

Type: long*

A variable that is tomTrue if the font can be changed or tomFalse if it cannot be changed. This parameter can be NULL.

Return value

Type: HRESULT

If the font can change, the method returns S_OK. If the method fails, it returns the following COM error code. For more information about COM error codes, see Error Handling in COM.

Return code Description
S_FALSE
The font cannot change.

Remarks

The *pbCanChange returns tomTrue only if the font can be changed. That is, no part of an associated range is protected and an associated document is not read-only. If this ITextFont object is a duplicate, no protection rules apply.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

Conceptual

ITextFont

Reference

Text Object Model