Posted 18 years ago
by Jason Whitted
-
Owner,
Etalisoft, LLC
![Avatar](https://secure.gravatar.com/avatar/d894d8cc7cd0bb61647a93a1591416cc.jpg?s=64&d=identicon&r=g)
I'm sure I'm just missing something, but I haven't been able to find the simple way to accomplish what I'm trying to do.
I am creating a method which will auto-format the document. The method takes the text from the document and parses it into a StringBuidler. The next step is to set the SyntaxEditor.Document.Text to the StringBuilder. This works, but I am unable to "Undo" the operation.
How can I replace the text in the document and have the original text be in the Undo stack?
I am creating a method which will auto-format the document. The method takes the text from the document and parses it into a StringBuidler. The next step is to set the SyntaxEditor.Document.Text to the StringBuilder. This works, but I am unable to "Undo" the operation.
How can I replace the text in the document and have the original text be in the Undo stack?