Articles in this section
Category / Section

How to clear the undo buffer in the WinForms SyntaxEditor (EditControl)?

1 min read

Reset undo redo buffer

The ResetUndoInfo 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.

C#

// Code to clear the Undo buffer
this.editcontrol1.ResetUndoInfo();
// Code to discard all the Unsaved changes
this.editControl1.DiscardChanges();

 

VB

' Code to clear the Undo buffer
Me.editcontrol1.ResetUndoInfo()
' Code to discard all the Unsaved changes
Me.editControl1.DiscardChanges()

 

Reference link: https://help.syncfusion.com/windowsforms/syntaxeditor/editing#reset-undo-redo-buffer

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied