Avoid certain textchanges type to be inserted in undohistoy

SyntaxEditor for WPF Forum

Posted 8 years ago by Tino Schnerwitzki
Version: 11.1.0545
Avatar
Hi,
is it possible to avoid certain textchange types e.g.

var textChange = editor.Document.CreateTextChange(TextChangeTypes.AutoFormat);
to be inserted in the undo stack of editors document history? I dont't want the user to undo some programmatic textchanges i've made on the document.

Maybe it is possible to manipulate the textchange in the UndoHistory_UndoRedoRequested eventhandler?

Thanks in advance.

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Tino,

Sorry but we don't have anything for that right now. I've added an item for the request to the TODO list.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) 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.