Inserting Text into Editor

SyntaxEditor for Windows Forms Forum

Posted 20 years ago by painetraine
Avatar
I have a situation where I have to insert large amounts of text into the editor and it is taking a while to populate the editor with the text. I found that calling InsertText would insert the text pretty fast (can I thread my text building and call InsertText through an Invoke on the window?) but when I call InsertText it moves the cursor to the end point of the insert.

Is there a way to insert text into the editor (without using .Text += since this seems to be really slow for large documents) and have the current insertion point remain where it is and allow the user to scroll while text is continuing to be added?

Hope this question was clear enough.

Thanks

Comments (1)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Unfortunately we don't have a way to do that at the moment. I'll add it to our TODO list though.

Just FYI, another way to insert text is to use the UndoableInsert and UndoableDelete methods.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.