1 write to UndoLimit
PresentationFramework (1)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1671undoManager.UndoLimit = limit;
14 references to UndoLimit
PresentationFramework (14)
MS\Internal\Documents\UndoManager.cs (13)
429if (++_topUndoIndex == UndoLimit) 434&& (UndoLimit == -1 || UndoStack.Count < UndoLimit)) 442if (++_bottomUndoIndex == UndoLimit) 701for (i = _bottomUndoIndex; i < UndoLimit; i++) 746if (UndoLimit >= 0 && _topUndoIndex >= UndoLimit) 748List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit); 750for (int i = _topUndoIndex + 1 - UndoLimit; i <= _topUndoIndex; i++) 757_topUndoIndex = UndoLimit - 1; 879count = _topUndoIndex + (UndoLimit - _bottomUndoIndex) + 1; 1127Invariant.Assert(UndoLimit > 0); 1128_topUndoIndex = UndoLimit - 1; // This should never be possible with an unlimited stack
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1443undoManager?.UndoLimit = this.UndoLimit;