Share via


DocumentBase.Undo Method

Undoes the last action or a sequence of actions, which are displayed in the Undo list. Returns true if the actions were successfully undone.

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

Syntax

'Declaration
Public Function Undo ( _
    ByRef times As Object _
) As Boolean
public bool Undo(
    ref Object times
)

Parameters

  • times
    Type: System.Object%
    The number of actions to be undone. The default is to undo the last action.

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace