Posted 19 years ago
by Jason Whitted
-
Owner,
Etalisoft, LLC
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?