2 writes to _dtrs
PresentationFramework (2)
MS\Internal\PtsHost\DtrList.cs (2)
28_dtrs = new DirtyTextRange[_defaultCapacity]; 316_dtrs = newdtrs;
49 references to _dtrs
PresentationFramework (49)
MS\Internal\PtsHost\DtrList.cs (49)
57if (startIndexOld < _dtrs[i].StartIndex) 59if (startIndexOld + dtr.PositionsRemoved > _dtrs[i].StartIndex) 68else if (startIndexOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsAdded) 75startIndexOld -= _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 97if (dtr.StartIndex < _dtrs[i].StartIndex) 99int delta = _dtrs[i].StartIndex - dtr.StartIndex; 100int adjust = Math.Min(_dtrs[i].PositionsAdded, dtr.PositionsRemoved - delta); 101_dtrs[i].StartIndex = dtr.StartIndex; 102_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 103_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 113int delta = dtr.StartIndex - _dtrs[i].StartIndex; 114int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].PositionsAdded - delta); 116_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 117_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 121_dtrs[i].FromHighlightLayer &= dtr.FromHighlightLayer; 126if (_count == _dtrs.Length) { Resize(); } 127Array.Copy(_dtrs, i, _dtrs, i+1, _count-i); 128_dtrs[i] = dtr; 136if (_count == _dtrs.Length) { Resize(); } 137_dtrs[_count] = dtr; 161DirtyTextRange range = _dtrs[0]; 170range = _dtrs[i]; 182return new DirtyTextRange(_dtrs[0].StartIndex, positionsAdded, positionsRemoved, fromHighlightLayer); 211if (dcpNew <= _dtrs[i].StartIndex + positionsAdded + _dtrs[i].PositionsAdded) 215positionsAdded += _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 226if (dcpNew - positionsAdded + cchOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsRemoved) 229if (dcpNew - positionsAdded + cchOld < _dtrs[i].StartIndex) 247DirtyTextRange dtr = _dtrs[first]; 265DirtyTextRange dtrNext = _dtrs[index+1]; 269if (dtrNext.StartIndex <= _dtrs[index].StartIndex + _dtrs[index].PositionsRemoved) 272_dtrs[index].PositionsAdded += dtrNext.PositionsAdded; 273_dtrs[index].PositionsRemoved += dtrNext.PositionsRemoved; 276_dtrs[index].FromHighlightLayer &= dtrNext.FromHighlightLayer; 281_dtrs[i - 1] = _dtrs[i]; 300if (_count == _dtrs.Length) { Resize(); } 301_dtrs[_count] = dtr; 311Debug.Assert(_dtrs.Length > 0); 314DirtyTextRange [] newdtrs = new DirtyTextRange[_dtrs.Length * 2]; 315Array.Copy(_dtrs, newdtrs, _dtrs.Length); 328get { return _dtrs[index]; }