1

Word Addin で作業していて、アクションが実行されたときに元に戻すアクションは表示されず、やり直しアクションのみが単語に表示されるため、Microsoft.interop.Word のやり直しリストをクリアする方法を知りたいです。

4

1 に答える 1

2

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.

于 2013-01-29T15:35:11.740 に答える