Adds an action unit to the undo stack.
[Visual Basic] Overloads Sub AddAction( _ ByVal action As IActionUnit, _ ByVal needsExecute As Boolean _ ) [C#] void AddAction( IActionUnit action, bool needsExecute ); [C++] void AddAction( IActionUnit* action, bool needsExecute ) = 0; [JScript] function AddAction( action : IActionUnit, needsExecute : Boolean );
If this action is undone, it will be added to the redo stack, if appropriate. If needsExecute is true, it will be executed; so actions may be created before they are to be executed. If the action has already been performed, set needsExcecute to false and create the action in the "UNDO" state.
IUndoService Interface | IUndoService Members | System.ComponentModel.Design Namespace | IUndoService.AddAction Overload List