I start an Undo or redo action programmatically. During Document.PreTextChanging event I find that in certain cases I need to reject the undo. I set e.Cancel to true for these cases. Even doing so, the editor change will take place.
Is there something special that needs to be done when the change is an undo or redo? Cancelling all other type of text changes (copy, paste or typed text) seem to work fine.
Thanks.
Is there something special that needs to be done when the change is an undo or redo? Cancelling all other type of text changes (copy, paste or typed text) seem to work fine.
Thanks.