Do Method [Visio 2003 SDK Documentation]

Called by the Microsoft Office Visio 2003 Undo Manager to tell an undo unit to perform its action. Returns Nothing.

object**.Do**(pMgr)

object    Required. An expression that returns the IVBUndoUnit interface.

pMgr    Required. A pointer to an IVBUndoManager interface.

Version added

2000

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.