Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找了半天,没有找到。
你碰巧知道有一个吗?
谢谢!
它不是内置的,但您可以实现自己的 看这篇文章在 stack over flow C#: How to implement good and efficient undo/redo functionaly for a TextBox
您可以在文本框中实现自定义撤消功能 ....
您可以处理 TextChanged 事件,每次更改时只需将文本框内容推送到堆栈中,然后每次用户按 Ctrl-Z 时弹出并刷新 TextBox .....