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.
在 Word Addin 上工作,并且在执行此操作时不会显示撤消操作,但只会在 word 中显示重做操作,所以我期待知道我们如何清除 Microsoft.interop.Word 中的重做列表?
您可以清除撤消历史记录,这也将清除重做历史记录(如果有):
ActiveDocument.UndoClear()
请注意,在清除撤消/重做历史记录后,您仍然可以通过按 Ctrl+Y 重复上一个命令。