This document is archived and information here might be outdated.  Recommended version.


IMxDocument.OperationStack Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (ArcMapUI)  

IMxDocument.OperationStack Property

The operation stack.

[Visual Basic .NET]
Public ReadOnly Property OperationStack As IOperationStack
[C#]
public IOperationStack OperationStack {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

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.

See Also

IMxDocument Interface | IOperationStack Interface

.NET Related Topics

SystemUI