This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IM > IMxDocument Interface > IMxDocument.OperationStack Property (ArcObjects .NET 10.5 SDK) |
The operation stack.
[Visual Basic .NET] Public ReadOnly Property OperationStack As IOperationStack
[C#] public IOperationStack OperationStack {get;}
The map document manages an operation stack which provides undo/redo functionality. Modifications, including those to elements and features, are typically wrapped inside an operation. Operations are added to the operation stack so the modification can be rolled out and then rolled back if desired. For example, when a graphic element is moved, the operation can be undone moving the graphic back to its original location.
Depending on your scenario, there are different methodologies for creating an operation and adding it to the OperationStack.
IMxDocument Interface | IOperationStack Interface