Posted 15 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 15 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 15 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 15 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 (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.