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 で作業していて、アクションが実行されたときに元に戻すアクションは表示されず、やり直しアクションのみが単語に表示されるため、Microsoft.interop.Word のやり直しリストをクリアする方法を知りたいです。
You can clear the undo history which will also clean the redo history, if there is any:
ActiveDocument.UndoClear()
Note that after clearing the undo/redo history you will still be able to repeat the last command by pressing Ctrl+Y.