It seems that there is this ClearUndo()
method in a RichTextBox in Windows Forms (see system.windows.forms.textboxbase.).
I need something similar in RichTextBox Control
. This is because (as it is mentioned here: Preventing a RichTextBox operation from being added to the control's Undo stack) every change is added to the RichTextBox's undo stack.
I like to override OnTextChanged
event and remove some of these changes from Uno stack. How can I do that?
thanks.