ArcGIS Pro 2.7 API Reference Guide
CanUndo Property (OperationManager)

ArcGIS.Desktop.Framework Namespace > OperationManager Class : CanUndo Property
Gets a boolean value after checking if the first operation can be undone.
Syntax
public bool CanUndo {get;}
Public ReadOnly Property CanUndo As Boolean
Remarks
If the operation cannot be undone, all the operations belonging to its same category are cleared from the undo stack.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

OperationManager Class
OperationManager Members