Temporary disabling Undo/Redo

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Thomas Hoegg
Version: 4.0.0283
Avatar
Hello,

we want to temporary disable the undo/redo. The reason why is, that we modify the document by code. It should not be possible for the user to undo these modifications. The undo/redo stack must be kept.

Is it somehow possible to realize this?

Thanks,
Thomas

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Thomas,

Sorry but that is not possible. You can't have non-undoable modifications made after undoable ones and then be able to undo the original ones. That would corrupt the undo stack.

You can reset the undo stack at any time by setting the Document.Text property though. But you won't be able to undo back to anything before that.


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.