ITextDocument::Undo method (tom.h)
Performs a specified number of undo operations.
Syntax
HRESULT Undo(
long Count,
long *pCount
);
Parameters
Count
Type: long
The specified number of undo operations. If the value of this parameter is tomFalse, undo processing is suspended. If this parameter is tomTrue, undo processing is restored.
pCount
Type: long*
The actual count of undo operations performed. This parameter can be NULL.
Return value
Type: HRESULT
If all of the Count undo operations were performed, it returns S_OK. If the method fails, it returns S_FALSE, indicating that less than Count undo operations were performed. For more information on COM error codes, see Error Handling in COM.
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