Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ITextFont::CanChange method

Determines whether the font can be changed.

Syntax


HRESULT CanChange(
  [retval] long *pbCanChange
);

Parameters

pbCanChange [retval]

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 codeDescription
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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

Reference
ITextFont
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2015 Microsoft