Aspose.Editor comes equipped with unlimited Undo and Redo capabilities. Everything that a user does with the document as well as everything that a programmer does through the API is undoable and redoable.
This code example shows how to use Undo and Redo.
[C#]
// Insert some text and change formatting.
Range range = doc.GetRange();
range.InsertAfter("Hello World - undoable!");
range.Font.Bold = true;
// This undoes Bold formatting.
doc.Undo();
// Undo the text insertion, the document is blank again.
doc.Undo();
[VB.NET]
' Insert some text and change formatting.
Dim range As Range = doc.GetRange()
range.InsertAfter("Hello World - undoable!")
range.Font.Bold = True
' Undo Bold formatting.
doc.Undo()
' Undo the text insertion, the document is blank again.
doc.Undo()