ITextPara::CanChange method (tom.h)
Determines whether the paragraph formatting can be changed.
Syntax
HRESULT CanChange(
[retval] long *pValue
);
Parameters
[retval] pValue
Type: long*
A variable that is tomTrue if the paragraph formatting can be changed or tomFalse if it cannot be changed. This parameter can be null.
Return value
Type: HRESULT
If paragraph formatting can change, ITextPara::CanChange succeeds and returns S_OK. If paragraph formatting cannot change, the method fails and returns S_FALSE. For more information about COM error codes, see Error Handling in COM.
Remarks
The *pbCanChange parameter returns tomTrue only if the paragraph formatting can be changed (that is, if no part of an associated range is protected and an associated document is not read-only). If this ITextPara 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
Reference