UndoStepsCount

UndoManager.UndoStepsCount property

获取当前可用的撤消步数。

public int UndoStepsCount { get; }

也可以看看