How to move caret to undo/redo textrange

SyntaxEditor for Windows Forms Forum

Posted 5 years ago by NorthGates - NorthGates Systems
Version: 12.1.0311
Avatar

I use document.UndoRedo.StartGroup(DocumentModificationType.AutoReplace,ts.Token.TextRange); to replace text on the document top.

I scroll down way past the replaced text then press undo button which does undo the textrange but the caret does not goto the undone action.

How can I tell the caret to scrolltoview to the last undo/redo action?

Comments (1)

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

The caret should be returning to the last offset that was modified via the undo operation.  If you aren't seeing that then something you are doing might be preventing that from working properly.  You can send our support address a new simple sample project that shows it happening if you'd like us to take a look.  Please reference this post and rename the .zip file extension so it doesn't get spam blocked.  Thanks!


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.