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)
65
if (startIndexOld <
_dtrs
[i].StartIndex)
67
if (startIndexOld + dtr.PositionsRemoved >
_dtrs
[i].StartIndex)
76
else if (startIndexOld <=
_dtrs
[i].StartIndex +
_dtrs
[i].PositionsAdded)
83
startIndexOld -=
_dtrs
[i].PositionsAdded -
_dtrs
[i].PositionsRemoved;
105
if (dtr.StartIndex <
_dtrs
[i].StartIndex)
107
int delta =
_dtrs
[i].StartIndex - dtr.StartIndex;
108
int 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;
121
int delta = dtr.StartIndex -
_dtrs
[i].StartIndex;
122
int 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;
134
if (_count ==
_dtrs
.Length) { Resize(); }
135
Array.Copy(
_dtrs
, i,
_dtrs
, i+1, _count-i);
136
_dtrs
[i] = dtr;
144
if (_count ==
_dtrs
.Length) { Resize(); }
145
_dtrs
[_count] = dtr;
169
DirtyTextRange range =
_dtrs
[0];
178
range =
_dtrs
[i];
190
return new DirtyTextRange(
_dtrs
[0].StartIndex, positionsAdded, positionsRemoved, fromHighlightLayer);
219
if (dcpNew <=
_dtrs
[i].StartIndex + positionsAdded +
_dtrs
[i].PositionsAdded)
223
positionsAdded +=
_dtrs
[i].PositionsAdded -
_dtrs
[i].PositionsRemoved;
234
if (dcpNew - positionsAdded + cchOld <=
_dtrs
[i].StartIndex +
_dtrs
[i].PositionsRemoved)
237
if (dcpNew - positionsAdded + cchOld <
_dtrs
[i].StartIndex)
255
DirtyTextRange dtr =
_dtrs
[first];
273
DirtyTextRange dtrNext =
_dtrs
[index+1];
277
if (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];
308
if (_count ==
_dtrs
.Length) { Resize(); }
309
_dtrs
[_count] = dtr;
319
Debug.Assert(
_dtrs
.Length > 0);
322
DirtyTextRange [] newdtrs = new DirtyTextRange[
_dtrs
.Length * 2];
323
Array.Copy(
_dtrs
, newdtrs,
_dtrs
.Length);
336
get { return
_dtrs
[index]; }