8 writes to PositionsAdded
PresentationFramework (8)
MS\Internal\PtsHost\DirtyTextRange.cs (4)
28PositionsAdded = positionsAdded; 42PositionsAdded = 0; 49PositionsAdded = change.Count; 57PositionsAdded = change.Count;
MS\Internal\PtsHost\DtrList.cs (3)
102_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 116_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 272_dtrs[index].PositionsAdded += dtrNext.PositionsAdded;
MS\Internal\PtsHost\UpdateRecord.cs (1)
45Dtr.PositionsAdded += delta + Next.Dtr.PositionsAdded;
29 references to PositionsAdded
PresentationFramework (29)
MS\Internal\Documents\TextBoxView.cs (13)
1544&& _dirtyList.DtrsFromRange(currentSelectionRange.StartIndex, currentSelectionRange.PositionsAdded) != null) 1553int[] offsets = new int[] { currentSelectionRange.StartIndex, currentSelectionRange.StartIndex + currentSelectionRange.PositionsAdded }; 1933Invariant.Assert(range.PositionsAdded == range.PositionsRemoved); // FromHighlightLayer never changes document size. 1936int endOffset = Math.Min(range.StartIndex + range.PositionsAdded, _host.TextContainer.SymbolCount); 2344int positionsAdded = range.PositionsAdded; 2358positionsAdded += rangeDistance + range.PositionsAdded; 2366if (range.PositionsAdded >= range.PositionsRemoved) 2370else if (range.PositionsAdded < range.PositionsRemoved) 2381int delta = range.PositionsAdded - range.PositionsRemoved; 2440int delta = range.PositionsAdded - range.PositionsRemoved; 2552bool offsetSyncOk = (range.PositionsAdded == 0 || range.PositionsRemoved == 0); 2553int lastCoveredCharOffset = range.StartIndex + Math.Max(range.PositionsAdded, range.PositionsRemoved); 2983int selectionEnd = selectionRange.StartIndex + selectionRange.PositionsAdded;
MS\Internal\PtsHost\BackgroundFormatInfo.cs (2)
62positionsAdded += _structuralCache.DtrList[dtrIndex].PositionsAdded - _structuralCache.DtrList[dtrIndex].PositionsRemoved; 67if((dtrLast.StartIndex + positionsAdded + dtrLast.PositionsAdded) >= _cchAllText)
MS\Internal\PtsHost\DtrList.cs (11)
68else if (startIndexOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsAdded) 75startIndexOld -= _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 100int adjust = Math.Min(_dtrs[i].PositionsAdded, dtr.PositionsRemoved - delta); 102_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 114int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].PositionsAdded - delta); 116_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 164int positionsAdded = range.PositionsAdded; 173positionsAdded = rangeDistance + range.PositionsAdded; 211if (dcpNew <= _dtrs[i].StartIndex + positionsAdded + _dtrs[i].PositionsAdded) 215positionsAdded += _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 272_dtrs[index].PositionsAdded += dtrNext.PositionsAdded;
MS\Internal\PtsHost\TextParagraph.cs (2)
801ddcpNew = dtrs[0].PositionsAdded; 808ddcpNew += delta + dtrs[i].PositionsAdded;
MS\Internal\PtsHost\UpdateRecord.cs (1)
45Dtr.PositionsAdded += delta + Next.Dtr.PositionsAdded;