Поделиться через


Document.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 (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Function Undo ( _
    ByRef Times As Object _
) As Boolean
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
true if the actions were successfully undone.

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace