2 writes to _dtrs
PresentationFramework (2)
src\Framework\MS\Internal\PtsHost\DtrList.cs (2)
36_dtrs = new DirtyTextRange[_defaultCapacity]; 324_dtrs = newdtrs;
49 references to _dtrs
PresentationFramework (49)
src\Framework\MS\Internal\PtsHost\DtrList.cs (49)
65if (startIndexOld < _dtrs[i].StartIndex) 67if (startIndexOld + dtr.PositionsRemoved > _dtrs[i].StartIndex) 76else if (startIndexOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsAdded) 83startIndexOld -= _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 105if (dtr.StartIndex < _dtrs[i].StartIndex) 107int delta = _dtrs[i].StartIndex - dtr.StartIndex; 108int adjust = Math.Min(_dtrs[i].PositionsAdded, dtr.PositionsRemoved - delta); 109_dtrs[i].StartIndex = dtr.StartIndex; 110_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 111_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 121int delta = dtr.StartIndex - _dtrs[i].StartIndex; 122int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].PositionsAdded - delta); 124_dtrs[i].PositionsAdded += dtr.PositionsAdded - adjust; 125_dtrs[i].PositionsRemoved += dtr.PositionsRemoved - adjust; 129_dtrs[i].FromHighlightLayer &= dtr.FromHighlightLayer; 134if (_count == _dtrs.Length) { Resize(); } 135Array.Copy(_dtrs, i, _dtrs, i+1, _count-i); 136_dtrs[i] = dtr; 144if (_count == _dtrs.Length) { Resize(); } 145_dtrs[_count] = dtr; 169DirtyTextRange range = _dtrs[0]; 178range = _dtrs[i]; 190return new DirtyTextRange(_dtrs[0].StartIndex, positionsAdded, positionsRemoved, fromHighlightLayer); 219if (dcpNew <= _dtrs[i].StartIndex + positionsAdded + _dtrs[i].PositionsAdded) 223positionsAdded += _dtrs[i].PositionsAdded - _dtrs[i].PositionsRemoved; 234if (dcpNew - positionsAdded + cchOld <= _dtrs[i].StartIndex + _dtrs[i].PositionsRemoved) 237if (dcpNew - positionsAdded + cchOld < _dtrs[i].StartIndex) 255DirtyTextRange dtr = _dtrs[first]; 273DirtyTextRange dtrNext = _dtrs[index+1]; 277if (dtrNext.StartIndex <= _dtrs[index].StartIndex + _dtrs[index].PositionsRemoved) 280_dtrs[index].PositionsAdded += dtrNext.PositionsAdded; 281_dtrs[index].PositionsRemoved += dtrNext.PositionsRemoved; 284_dtrs[index].FromHighlightLayer &= dtrNext.FromHighlightLayer; 289_dtrs[i - 1] = _dtrs[i]; 308if (_count == _dtrs.Length) { Resize(); } 309_dtrs[_count] = dtr; 319Debug.Assert(_dtrs.Length > 0); 322DirtyTextRange [] newdtrs = new DirtyTextRange[_dtrs.Length * 2]; 323Array.Copy(_dtrs, newdtrs, _dtrs.Length); 336get { return _dtrs[index]; }