ITextRange::CanEdit method

Determines whether the specified range can be edited.

Syntax


HRESULT CanEdit(
  long *pbCanEdit
);

Parameters

pbCanEdit [retval]

Type: long*

A tomBool value indicating whether the range can be edited. It is tomTrue only if the specified range can be edited. The pointer can be null.

Return value

Type: HRESULT

If the range can be edited, the method succeeds and returns S_OK. If the range cannot be edited, the method fails and returns S_FALSE. For more information about COM error codes, see Error Handling in COM.

Remarks

The range cannot be edited if any part of it is protected or if the document is read-only.

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
ITextRange
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2014 Microsoft