Call Undo to cancel all changes made to the Text property since the last call to the ClearUndo method. If ClearUndo was never called, Undo rolls back all changes.
To determine whether there are any changes in the undo buffer, check the CanUndo property.