Adds an action unit to the undo stack.
[Visual Basic] Overloads Sub AddAction( _ ByVal action As IActionUnit, _ ByVal needsExecute As Boolean, _ ByVal supressChildUndoAdds As Boolean _ ) [C#] void AddAction( IActionUnit action, bool needsExecute, bool supressChildUndoAdds ); [C++] void AddAction( IActionUnit* action, bool needsExecute, bool supressChildUndoAdds ) = 0; [JScript] function AddAction( action : IActionUnit, needsExecute : Boolean, supressChildUndoAdds : Boolean );
If this action is ever undone, it will be added automatically 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. suppressChildUndoAdds specified as true will cause the undo service to ignore any undo actions that action attempts to add when it is executed. If needsExecute is false, this parameter is ignored.
IUndoService Interface | IUndoService Members | System.ComponentModel.Design Namespace | IUndoService.AddAction Overload List