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)
61
if (startIndexOld <
_dtrs
[i].StartIndex)
63
if (startIndexOld + dtr.PositionsRemoved >
_dtrs
[i].StartIndex)
72
else if (startIndexOld <=
_dtrs
[i].StartIndex +
_dtrs
[i].PositionsAdded)
79
startIndexOld -=
_dtrs
[i].PositionsAdded -
_dtrs
[i].PositionsRemoved;
101
if (dtr.StartIndex <
_dtrs
[i].StartIndex)
103
int delta =
_dtrs
[i].StartIndex - dtr.StartIndex;
104
int 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;
117
int delta = dtr.StartIndex -
_dtrs
[i].StartIndex;
118
int 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;
130
if (_count ==
_dtrs
.Length) { Resize(); }
131
Array.Copy(
_dtrs
, i,
_dtrs
, i+1, _count-i);
132
_dtrs
[i] = dtr;
140
if (_count ==
_dtrs
.Length) { Resize(); }
141
_dtrs
[_count] = dtr;
165
DirtyTextRange range =
_dtrs
[0];
174
range =
_dtrs
[i];
186
return new DirtyTextRange(
_dtrs
[0].StartIndex, positionsAdded, positionsRemoved, fromHighlightLayer);
215
if (dcpNew <=
_dtrs
[i].StartIndex + positionsAdded +
_dtrs
[i].PositionsAdded)
219
positionsAdded +=
_dtrs
[i].PositionsAdded -
_dtrs
[i].PositionsRemoved;
230
if (dcpNew - positionsAdded + cchOld <=
_dtrs
[i].StartIndex +
_dtrs
[i].PositionsRemoved)
233
if (dcpNew - positionsAdded + cchOld <
_dtrs
[i].StartIndex)
251
DirtyTextRange dtr =
_dtrs
[first];
269
DirtyTextRange dtrNext =
_dtrs
[index+1];
273
if (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];
304
if (_count ==
_dtrs
.Length) { Resize(); }
305
_dtrs
[_count] = dtr;
315
Debug.Assert(
_dtrs
.Length > 0);
318
DirtyTextRange [] newdtrs = new DirtyTextRange[
_dtrs
.Length * 2];
319
Array.Copy(
_dtrs
, newdtrs,
_dtrs
.Length);
332
get { return
_dtrs
[index]; }