[UndoManager.UndoStepsCount property 获取当前可用的撤消步数。 public int UndoStepsCount { get; } 也可以看看 class UndoManager 命名空间 Aspose.Cells.GridDesktop 部件 Aspose.Cells.GridDesktop]