Preventing a RichTextBox operation from being added to the control's Undo stack

こ雲淡風輕ζ 提交于 2019-12-01 13:58:52

No cando. At best you can flush the undo stack completely by sending EM_SETUNDOLIMIT twice. EM_SETTEXTEX offers the same option with the ST_DEFAULT flag. Surely not what you want. Look at ScintillaNET for a real editor.

If you came here when searching for a WPF c# answer you have a good one here Answered

Actually you can easily do this by implementing some of the ITextDocument interface and sending tomSuspend and tomResume as a count argument to the Undo handler.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!