2 writes to _dtrs
PresentationFramework (2)
MS\Internal\PtsHost\DtrList.cs (2)
32_dtrs = new DirtyTextRange[_defaultCapacity]; 320_dtrs = newdtrs;
49 references to _dtrs
PresentationFramework (49)
MS\Internal\PtsHost\DtrList.cs (49)
61if (startIndexOld < _dtrs[i].StartIndex) 63if (startIndexOld + dtr.PositionsRemoved > _dtrs[i].StartIndex) 72else if (startIndexOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsAdded) 79startIndexOld -= _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 101if (dtr.StartIndex < _dtrs[i].StartIndex) 103int delta = _dtrs[i].StartIndex - dtr.StartIndex; 104int adjust = Math.Min(_dtrs[i].PositionsAdded, dtr.PositionsRemoved - delta); 105_dtrs[i].StartIndex = dtr.StartIndex; 106_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 107_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 117int delta = dtr.StartIndex - _dtrs[i].StartIndex; 118int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].PositionsAdded - delta); 120_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 121_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 125_dtrs[i].FromHighlightLayer &= dtr.FromHighlightLayer; 130if (_count == _dtrs.Length) { Resize(); } 131Array.Copy(_dtrs, i, _dtrs, i+1, _count-i); 132_dtrs[i] = dtr; 140if (_count == _dtrs.Length) { Resize(); } 141_dtrs[_count] = dtr; 165DirtyTextRange range = _dtrs[0]; 174range = _dtrs[i]; 186return new DirtyTextRange(_dtrs[0].StartIndex, positionsAdded, positionsRemoved, fromHighlightLayer); 215if (dcpNew <= _dtrs[i].StartIndex + positionsAdded + _dtrs[i].PositionsAdded) 219positionsAdded += _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 230if (dcpNew - positionsAdded + cchOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsRemoved) 233if (dcpNew - positionsAdded + cchOld < _dtrs[i].StartIndex) 251DirtyTextRange dtr = _dtrs[first]; 269DirtyTextRange dtrNext = _dtrs[index+1]; 273if (dtrNext.StartIndex <= _dtrs[index].StartIndex + _dtrs[index].PositionsRemoved) 276_dtrs[index].PositionsAdded += dtrNext.PositionsAdded; 277_dtrs[index].PositionsRemoved += dtrNext.PositionsRemoved; 280_dtrs[index].FromHighlightLayer &= dtrNext.FromHighlightLayer; 285_dtrs[i - 1] = _dtrs[i]; 304if (_count == _dtrs.Length) { Resize(); } 305_dtrs[_count] = dtr; 315Debug.Assert(_dtrs.Length > 0); 318DirtyTextRange [] newdtrs = new DirtyTextRange[_dtrs.Length * 2]; 319Array.Copy(_dtrs, newdtrs, _dtrs.Length); 332get { return _dtrs[index]; }