Share via


DesignerDocument.createUndoTransaction Method

SharePoint Designer Developer Reference

Creates a new instance of an UndoTransaction object for the specified document.

Syntax

expression.createUndoTransaction(title)

expression   A variable that represents a DesignerDocument object.

Parameters

Name Required/Optional Data Type Description
title Required String The string that represents the title of the UndoTransaction object and appears on the list of Undo commands on the Edit menu.

Return Value
UndoTransaction

Remarks

An UndoTransaction object allows you to track every action that occurs after the undo transaction stack is created. You can then use the programming elements provided in the object model at run time to track the actions of a macro.

Use the createUndoTransaction method to create an UndoTransaction object. The String argument passed to the createUndoTransaction method is added to the Undo command on the Edit menu when the commit method is called.

See Also