23 references to UndoCount
PresentationFramework (23)
MS\Internal\Documents\UndoManager.cs (8)
264if (UndoCount == 0 || PeekUndoStack() != unit) 519ArgumentOutOfRangeException.ThrowIfGreaterThan(count, UndoCount); 532Invariant.Assert(UndoCount > _minUndoStackCount); 628if (UndoCount > 0) 706List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoCount); 927Invariant.Assert(index < this.UndoCount); 949Invariant.Assert(count + index <= this.UndoCount); 1132int undoCount = UndoCount - 1;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
323if (undoManager != null && undoManager.UndoCount > undoManager.MinUndoStackCount) 647(undoManager.UndoCount > undoManager.MinUndoStackCount ||
System\windows\Documents\TextEditor.cs (2)
583if (undoManager != null && undoManager.UndoCount > undoManager.MinUndoStackCount) 1894if (undoManager != null && undoManager.UndoCount > undoManager.MinUndoStackCount)
System\Windows\Documents\TextStore.cs (11)
2345initialUndoCount = undoManager.UndoCount; 3559UndoQuietly(undoManager.UndoCount - previousUndoCount); 3562int initialUndoCount = undoManager.UndoCount; 3577SetFinalDocumentState(undoManager, imeChangeStack, undoManager.UndoCount - initialUndoCount, imeSelectionAnchorOffset, imeSelectionMovingOffset, appSelectionAnchorOffset, appSelectionMovingOffset); 3659undoManager.MinUndoStackCount = undoManager.UndoCount; 3696undoManager.MinUndoStackCount = undoManager.UndoCount; 3745undoManager.MinUndoStackCount = undoManager.UndoCount; 3919int completeUnitCount = undoManager.UndoCount; 3934completeUnitCount = (undoManager.UndoCount - completeUnitCount); 4079int i = undoManager.UndoCount - 1; 4080int j = undoManager.UndoCount - 1;