Clears actions from the undo stack before and including the specified action.
[Visual Basic] Sub DiscardUndoItems( _ ByVal action As IActionUnit _ ) [C#] void DiscardUndoItems( IActionUnit action ); [C++] void DiscardUndoItems( IActionUnit* action ) = 0; [JScript] function DiscardUndoItems( action : IActionUnit );
If action is a null reference (Nothing) then all actions are removed. If action is not found in the stack, an ArgumentException is thrown.
IUndoService Interface | IUndoService Members | System.ComponentModel.Design Namespace