8 writes to PositionsRemoved
PresentationFramework (8)
MS\Internal\PtsHost\DirtyTextRange.cs (4)
29PositionsRemoved = positionsRemoved; 43PositionsRemoved = 0; 53PositionsRemoved = change.Count; 58PositionsRemoved = change.Count;
MS\Internal\PtsHost\DtrList.cs (3)
103_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 117_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 273_dtrs[index].PositionsRemoved += dtrNext.PositionsRemoved;
MS\Internal\PtsHost\UpdateRecord.cs (1)
46Dtr.PositionsRemoved += delta + Next.Dtr.PositionsRemoved;
27 references to PositionsRemoved
PresentationFramework (27)
MS\Internal\Documents\TextBoxView.cs (9)
1933Invariant.Assert(range.PositionsAdded == range.PositionsRemoved); // FromHighlightLayer never changes document size. 2345int positionsRemoved = range.PositionsRemoved; 2359positionsRemoved += rangeDistance + range.PositionsRemoved; 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);
MS\Internal\PtsHost\BackgroundFormatInfo.cs (1)
62positionsAdded += _structuralCache.DtrList[dtrIndex].PositionsAdded - _structuralCache.DtrList[dtrIndex].PositionsRemoved;
MS\Internal\PtsHost\ContainerParagraph.cs (2)
1301if ( (dcpPara + para.LastFormatCch > ur.Dtr.StartIndex + ur.Dtr.PositionsRemoved) 1302|| (dcpPara + para.LastFormatCch == ur.Dtr.StartIndex + ur.Dtr.PositionsRemoved && ur.ChangeType != PTS.FSKCHANGE.fskchNew))
MS\Internal\PtsHost\DtrList.cs (12)
59if (startIndexOld + dtr.PositionsRemoved > _dtrs[i].StartIndex) 75startIndexOld -= _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 100int adjust = Math.Min(_dtrs[i].PositionsAdded, dtr.PositionsRemoved - delta); 103_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 114int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].PositionsAdded - delta); 117_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 165int positionsRemoved = range.PositionsRemoved; 174positionsRemoved = rangeDistance + range.PositionsRemoved; 215positionsAdded += _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 226if (dcpNew - positionsAdded + cchOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsRemoved) 269if (dtrNext.StartIndex <= _dtrs[index].StartIndex + _dtrs[index].PositionsRemoved) 273_dtrs[index].PositionsRemoved += dtrNext.PositionsRemoved;
MS\Internal\PtsHost\TextParagraph.cs (2)
802ddcpOld = dtrs[0].PositionsRemoved; 809ddcpOld += delta + dtrs[i].PositionsRemoved;
MS\Internal\PtsHost\UpdateRecord.cs (1)
46Dtr.PositionsRemoved += delta + Next.Dtr.PositionsRemoved;