UndoManager.DiscardUndoStacks Method

Throws away undo/redo stacks. If the bool is true, then in addition to discarding the undostack the routine will mark the stack as clean.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Public Sub DiscardUndoStacks ( _
    markAsClean As Boolean _
)
public void DiscardUndoStacks(
    bool markAsClean
)
public:
void DiscardUndoStacks(
    bool markAsClean
)
member DiscardUndoStacks : 
        markAsClean:bool -> unit
public function DiscardUndoStacks(
    markAsClean : boolean
)

Parameters

  • markAsClean
    Type: Boolean

.NET Framework Security

See Also

Reference

UndoManager Class

Microsoft.VisualStudio.Modeling.Shell Namespace