This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the Operation Stack.
An application can implement an OperationStack to provide undo and redo facilities. As you carry out operations, they are added to the stack, then you can use undo and redo in the application to manipulate the stack to undo or redo the operations.
Name | Description | |
---|---|---|
Count | The number of operations on the stack. | |
Do | Performs the given operation and places it on the stack. | |
Item | The operation at the specified index. | |
Redo | Redoes the next operation on the stack. | |
RedoOperation | Redoes a specified operation. | |
Remove | Removes an operation from the stack. | |
Reset | Removes all operations from the stack. | |
Undo | Undoes the previous operation on the stack. | |
UndoOperation | Undoes a specified operation. |
CoClasses and Classes | Description |
---|---|
ControlsOperationStack | Use this class to provide operation support to the ToolbarControl. |
ArcMap has an OperationStack, which can be obtained with the IMxDocument::OperationStack property. ArcMap’s buttons and tools wrap their actions in an operation and add the operations to the stack.
Depending on your scenario, there are different methodologies for creating an operation and adding it to the OperationStack.