Partilhar via


Document.UndoClear Method

Clears the list of actions that can be undone for the document. Corresponds to the list of items that appears when you click the arrow beside the Undo button on the Quick Access Toolbar.

Namespace:  Microsoft.Office.Tools.Word
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Sub UndoClear
void UndoClear()

Remarks

Include this method after a method in your code to keep Word object model actions from appearing in the Undo box.

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace