Posted 10 years ago by Yuenho Leung
Version: 4.0.0281
Avatar
Hi,

Does anyone know how I can clear Redo buffer?

Also I saw the editor.Document.Undo.UndoStack has Count attribute. Can I use this determine how many times I can undo/redo?

Thanks
Yuenho

Comments (3)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yuenho,

You can do this to clear the redo stack:
editor.Document.UndoRedo.RedoStack.Clear()
You can use the UndoStack.Capacity property to determine the number of undo operations that are stored.


Actipro Software Support

Posted 10 years ago by Yuenho Leung
Avatar
Hi support,

It seems that the Clear method is not available. I am using 4.0.0270. Is there any alternative?

Thanks
Yuenho
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sorry had a typo, the Clear method is on the UndoRedo object. There are some internal ones on the individual stacks. But the public one will clear both stacks.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.