How to clear the undo buffer in the WinForms SyntaxEditor (EditControl)?
1 min read
Reset undo redo buffer
The method clears the undo buffer and saves changes to underlying stream, so the changes cannot be Undone on the contents or actions previously added or performed up to that point. Please refer to the code snippets below.
// Code to clear the Undo buffer this.editcontrol1.ResetUndoInfo(); // Code to discard all the Unsaved changes this.editControl1.DiscardChanges();
' Code to clear the Undo buffer Me.editcontrol1.ResetUndoInfo() ' Code to discard all the Unsaved changes Me.editControl1.DiscardChanges()
Please provide feedback or comments
Did not find the solution Contact Support