ITextRange::CanEdit method (tom.h)
Determines whether the specified range can be edited.
Syntax
HRESULT CanEdit(
[retval] long *pValue
);
Parameters
[retval] pValue
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
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