UndoNumSteps: Integer;
The UndoNumSteps property returns the number of steps that can be canceled.
The example of use is given in the IWxWorkspace.Undo description.
See also:
IWxWorkspace