Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ITextDocument::Undo method

Performs a specified number of undo operations.

Syntax


HRESULT Undo(
  long Count,
  long *prop
);

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.

prop

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

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.