2 writes to UndoLimit
PresentationFramework (2)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1507
undoManager.
UndoLimit
= this.UndoLimit;
1748
undoManager.
UndoLimit
= limit;
13 references to UndoLimit
PresentationFramework (13)
MS\Internal\Documents\UndoManager.cs (13)
439
if (++_topUndoIndex ==
UndoLimit
)
444
&& (
UndoLimit
== -1 || UndoStack.Count <
UndoLimit
))
452
if (++_bottomUndoIndex ==
UndoLimit
)
711
for (i = _bottomUndoIndex; i <
UndoLimit
; i++)
756
if (
UndoLimit
>= 0 && _topUndoIndex >=
UndoLimit
)
758
List<IUndoUnit> undoStack = new List<IUndoUnit>(
UndoLimit
);
760
for (int i = _topUndoIndex + 1 -
UndoLimit
; i <= _topUndoIndex; i++)
767
_topUndoIndex =
UndoLimit
- 1;
889
count = _topUndoIndex + (
UndoLimit
- _bottomUndoIndex) + 1;
1137
Invariant.Assert(
UndoLimit
> 0);
1138
_topUndoIndex =
UndoLimit
- 1; // This should never be possible with an unlimited stack