UndoNumSteps: Integer;
The UndoNumSteps property returns the number of steps that can be canceled.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Begin
ws.Undo(ws.UndoNumSteps);
End Sub UserProc;
Executing this example will cancel all available actions.
See also: