Table of contents
TOC
Collapse the table of content
Expand the table of content

IVBUndoUnit.Do Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Called by the Undo Manager to tell an undo unit to perform its action.

Syntax

expression . Do( pMgr )

expression A variable that represents an IVBUndoUnit object.

Parameters

NameRequired/OptionalData TypeDescription
pMgrRequired[IVBUNDOMANAGER]A pointer to an IVBUndoManager interface.

Return Value

Nothing

Remarks

If you are creating an undo unit for your solution, the Do method is one of the procedures that you must implement. It provides the actions that are required to undo and redo actions.

If you are creating a single object for both undoing and redoing, the Do method maintains the undo/redo state and adds an undo unit to the opposite stack.

If the Do method is passed a Nothing pointer, the unit should carry out the undo action but should not place anything on the undo or redo stack.

For more information about the Do method and using the IVBUndoUnit interface to create undo units, search for "creating undo units" on MSDN.

© 2018 Microsoft