this.xamRichTextEditor1.Document.StartUndoLogging();
This topic explains how to turn on and off the xamRichTextEditor ™ control’s undo logging funtionality.
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
The Undo/Redo feature logs all changes made to the document’s content by the user or in code. When you first create a document or load new content using the load method logging is off by default. It will turn on if one of these occur:
The user starts editing the document content thru an attached XamRichTextEditor control
The StartUndoLogging method on the document is invoked
If you invoke the StopUndoLogging method on the RichTextDocument this will clear all undo history and stop undo logging.
The following table briefly explains the configurable aspects of the RichTextDocument and maps them to their specific properties.
Start the undo logging programmatically by invoking the StartUndoLogging
method.
In C#:
this.xamRichTextEditor1.Document.StartUndoLogging();
You can stop undo logging by programmatically invoking the StopUndoLogging method. This will also clear the undo history.
In C#:
this.xamRichTextEditor1.Document.StopUndoLogging();
The following topic provides additional information related to this topic.