AvalonStudio.TextEditor.Document.UndoStack.ClearAll C# (CSharp) Method

ClearAll() public method

Clears both the undo and redo stack.
public ClearAll ( ) : void
return void
		public void ClearAll()
		{
			ThrowIfUndoGroupOpen();
			actionCountInUndoGroup = 0;
			optionalActionCount = 0;
			if (undostack.Count != 0)
			{
				LastGroupDescriptor = null;
				allowContinue = false;
				undostack.Clear();
				NotifyPropertyChanged("CanUndo");
			}
			ClearRedoStack();
		}