How to move caret to undo/redo textrange

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by NorthGates - NorthGates Systems
Version: 12.1.0311

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 11 years ago by Actipro Software Support - Cleveland, OH, USA

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

Add Comment

Please log in to a validated account to post comments.