Using Editor.Document.Text

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by screamingclown
Avatar
I have been trying to use the property "Editor.Document.Text.Remove" but it doesn't seem to work.
.Insert doesn't seem to do anything either.
Is there something I am doing wrong?
Or is there another way to add or modify some text in code?

Thanks
Jeff

Comments (3)

Posted 15 years ago by screamingclown
Avatar
How embarrassing.

Editor.Document.Text = Editor.Document.Text.Remove( 3, 5 );

I guess I need some more caffeine

Sorry for the wasted post.

Jeff
Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You can use the UndoableInsert or UndoableDelete methods in Document to perform text updates.


Actipro Software Support

Posted 15 years ago by screamingclown
Avatar
That's a good idea.
I will look into that. I think that will do exactly what I want.

Thanks
The latest build of this product (v2018.1 build 0341) was released 9 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.