Using Editor.Document.Text

SyntaxEditor for Windows Forms Forum

Posted 20 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 20 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 20 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 20 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 (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.