v2.44
 
IUndoStack Interface Reference

An undo stack is a collection of Renga project changesets that can be undone, organized as a stack. More...

Public Member Functions

HRESULT HasRedo ([out, retval] VARIANT_BOOL *pResult)
 Indicates whether the undo stack has redo changeset.
 
HRESULT HasUndo ([out, retval] VARIANT_BOOL *pResult)
 Indicates whether the undo stack has undo changeset.
 
HRESULT Redo ()
 Redoes the last undone changeset.
 
HRESULT Undo ()
 Undoes the last changeset.
 

Detailed Description

An undo stack is a collection of Renga project changesets that can be undone, organized as a stack.

When the Undo command is executed, the last changeset is undone and removed from the stack. Until another changeset is added to the stack, the undone changeset can be reverted with the Redo command. Redo reapplies the last undone changeset and pushes it back onto the Undo stack. A specific undo stack is associated with a specific model (See IModel, IProject::CreateOperationWithUndo, IProject::GetUndoStack).

Member Function Documentation

◆ HasRedo()

HRESULT HasRedo ( [out, retval] VARIANT_BOOL * pResult)

Indicates whether the undo stack has redo changeset.

Parameters
[out]pResultEquals TRUE if redo operations are available, FALSE otherwise.

◆ HasUndo()

HRESULT HasUndo ( [out, retval] VARIANT_BOOL * pResult)

Indicates whether the undo stack has undo changeset.

Parameters
[out]pResultEquals TRUE if undo operations are available, FALSE otherwise.