ITextPara::CanChange method

Determines whether the paragraph formatting can be changed.

Syntax


HRESULT CanChange(
  long *pbCanChange
);

Parameters

pbCanChange [retval]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

Reference
ITextPara
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.