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

ClearRedoStack() public method

Call this method, if you want to clear the redo stack
public ClearRedoStack ( ) : void
return void
		public void ClearRedoStack()
		{
			if (redostack.Count != 0)
			{
				redostack.Clear();
				NotifyPropertyChanged("CanRedo");
				// if the "original file" marker is on the redo stack: remove it
				if (elementsOnUndoUntilOriginalFile < 0)
					elementsOnUndoUntilOriginalFile = int.MinValue;
			}
		}