Suppose I add from code some text to a shown document, like this:
try{ radRichTextEditor1.Document.History.IsEnabled = false; var editor = new RadDocumentEditor(radRichTextEditor1.Document); editor.Document.CaretPosition.MoveToLastPositionInDocument(); editor.InsertParagraph(); editor.Insert("XYZ"); editor.Document.CaretPosition.MoveToFirstPositionInDocument(); editor.Insert("ABC"); editor.InsertParagraph();}finally{ radRichTextEditor1.Document.History.IsEnabled = true;}
This code will destroy document's CaretPosition, Selection, and also user's view to the document (vertical scroll bar location). Is there a way to restore them to previous values?
