8 writes to PositionsAdded
PresentationFramework (8)
src\Framework\MS\Internal\PtsHost\DirtyTextRange.cs (4)
35
PositionsAdded
= positionsAdded;
49
PositionsAdded
= 0;
56
PositionsAdded
= change.Count;
64
PositionsAdded
= change.Count;
src\Framework\MS\Internal\PtsHost\DtrList.cs (3)
110
_dtrs[i].
PositionsAdded
+= dtr.PositionsAdded - adjust;
124
_dtrs[i].
PositionsAdded
+= dtr.PositionsAdded - adjust;
280
_dtrs[index].
PositionsAdded
+= dtrNext.PositionsAdded;
src\Framework\MS\Internal\PtsHost\UpdateRecord.cs (1)
51
Dtr.
PositionsAdded
+= delta + Next.Dtr.PositionsAdded;
29 references to PositionsAdded
PresentationFramework (29)
src\Framework\MS\Internal\Documents\TextBoxView.cs (13)
1547
&& _dirtyList.DtrsFromRange(currentSelectionRange.StartIndex, currentSelectionRange.
PositionsAdded
) != null)
1556
int[] offsets = new int[] { currentSelectionRange.StartIndex, currentSelectionRange.StartIndex + currentSelectionRange.
PositionsAdded
};
1933
Invariant.Assert(range.
PositionsAdded
== range.PositionsRemoved); // FromHighlightLayer never changes document size.
1936
int endOffset = Math.Min(range.StartIndex + range.
PositionsAdded
, _host.TextContainer.SymbolCount);
2342
int positionsAdded = range.
PositionsAdded
;
2356
positionsAdded += rangeDistance + range.
PositionsAdded
;
2364
if (range.
PositionsAdded
>= range.PositionsRemoved)
2368
else if (range.
PositionsAdded
< range.PositionsRemoved)
2379
int delta = range.
PositionsAdded
- range.PositionsRemoved;
2438
int delta = range.
PositionsAdded
- range.PositionsRemoved;
2550
bool offsetSyncOk = (range.
PositionsAdded
== 0 || range.PositionsRemoved == 0);
2551
int lastCoveredCharOffset = range.StartIndex + Math.Max(range.
PositionsAdded
, range.PositionsRemoved);
2962
int selectionEnd = selectionRange.StartIndex + selectionRange.
PositionsAdded
;
src\Framework\MS\Internal\PtsHost\BackgroundFormatInfo.cs (2)
67
positionsAdded += _structuralCache.DtrList[dtrIndex].
PositionsAdded
- _structuralCache.DtrList[dtrIndex].PositionsRemoved;
72
if((dtrLast.StartIndex + positionsAdded + dtrLast.
PositionsAdded
) >= _cchAllText)
src\Framework\MS\Internal\PtsHost\DtrList.cs (11)
76
else if (startIndexOld <= _dtrs[i].StartIndex + _dtrs[i].
PositionsAdded
)
83
startIndexOld -= _dtrs[i].
PositionsAdded
- _dtrs[i].PositionsRemoved;
108
int adjust = Math.Min(_dtrs[i].
PositionsAdded
, dtr.PositionsRemoved - delta);
110
_dtrs[i].PositionsAdded += dtr.
PositionsAdded
- adjust;
122
int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].
PositionsAdded
- delta);
124
_dtrs[i].PositionsAdded += dtr.
PositionsAdded
- adjust;
172
int positionsAdded = range.
PositionsAdded
;
181
positionsAdded = rangeDistance + range.
PositionsAdded
;
219
if (dcpNew <= _dtrs[i].StartIndex + positionsAdded + _dtrs[i].
PositionsAdded
)
223
positionsAdded += _dtrs[i].
PositionsAdded
- _dtrs[i].PositionsRemoved;
280
_dtrs[index].PositionsAdded += dtrNext.
PositionsAdded
;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (2)
815
ddcpNew = dtrs[0].
PositionsAdded
;
822
ddcpNew += delta + dtrs[i].
PositionsAdded
;
src\Framework\MS\Internal\PtsHost\UpdateRecord.cs (1)
51
Dtr.PositionsAdded += delta + Next.Dtr.
PositionsAdded
;