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)
57
if (startIndexOld <
_dtrs
[i].StartIndex)
59
if (startIndexOld + dtr.PositionsRemoved >
_dtrs
[i].StartIndex)
68
else if (startIndexOld <=
_dtrs
[i].StartIndex +
_dtrs
[i].PositionsAdded)
75
startIndexOld -=
_dtrs
[i].PositionsAdded -
_dtrs
[i].PositionsRemoved;
97
if (dtr.StartIndex <
_dtrs
[i].StartIndex)
99
int delta =
_dtrs
[i].StartIndex - dtr.StartIndex;
100
int 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;
113
int delta = dtr.StartIndex -
_dtrs
[i].StartIndex;
114
int 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;
126
if (_count ==
_dtrs
.Length) { Resize(); }
127
Array.Copy(
_dtrs
, i,
_dtrs
, i+1, _count-i);
128
_dtrs
[i] = dtr;
136
if (_count ==
_dtrs
.Length) { Resize(); }
137
_dtrs
[_count] = dtr;
161
DirtyTextRange range =
_dtrs
[0];
170
range =
_dtrs
[i];
182
return new DirtyTextRange(
_dtrs
[0].StartIndex, positionsAdded, positionsRemoved, fromHighlightLayer);
211
if (dcpNew <=
_dtrs
[i].StartIndex + positionsAdded +
_dtrs
[i].PositionsAdded)
215
positionsAdded +=
_dtrs
[i].PositionsAdded -
_dtrs
[i].PositionsRemoved;
226
if (dcpNew - positionsAdded + cchOld <=
_dtrs
[i].StartIndex +
_dtrs
[i].PositionsRemoved)
229
if (dcpNew - positionsAdded + cchOld <
_dtrs
[i].StartIndex)
247
DirtyTextRange dtr =
_dtrs
[first];
265
DirtyTextRange dtrNext =
_dtrs
[index+1];
269
if (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];
300
if (_count ==
_dtrs
.Length) { Resize(); }
301
_dtrs
[_count] = dtr;
311
Debug.Assert(
_dtrs
.Length > 0);
314
DirtyTextRange [] newdtrs = new DirtyTextRange[
_dtrs
.Length * 2];
315
Array.Copy(
_dtrs
, newdtrs,
_dtrs
.Length);
328
get { return
_dtrs
[index]; }