8 writes to PositionsAdded
PresentationFramework (8)
MS\Internal\PtsHost\DirtyTextRange.cs (4)
30
PositionsAdded
= positionsAdded;
44
PositionsAdded
= 0;
51
PositionsAdded
= change.Count;
59
PositionsAdded
= change.Count;
MS\Internal\PtsHost\DtrList.cs (3)
106
_dtrs[i].
PositionsAdded
+= dtr.PositionsAdded - adjust;
120
_dtrs[i].
PositionsAdded
+= dtr.PositionsAdded - adjust;
276
_dtrs[index].
PositionsAdded
+= dtrNext.PositionsAdded;
MS\Internal\PtsHost\UpdateRecord.cs (1)
48
Dtr.
PositionsAdded
+= delta + Next.Dtr.PositionsAdded;
29 references to PositionsAdded
PresentationFramework (29)
MS\Internal\Documents\TextBoxView.cs (13)
1546
&& _dirtyList.DtrsFromRange(currentSelectionRange.StartIndex, currentSelectionRange.
PositionsAdded
) != null)
1555
int[] offsets = new int[] { currentSelectionRange.StartIndex, currentSelectionRange.StartIndex + currentSelectionRange.
PositionsAdded
};
1935
Invariant.Assert(range.
PositionsAdded
== range.PositionsRemoved); // FromHighlightLayer never changes document size.
1938
int endOffset = Math.Min(range.StartIndex + range.
PositionsAdded
, _host.TextContainer.SymbolCount);
2346
int positionsAdded = range.
PositionsAdded
;
2360
positionsAdded += rangeDistance + range.
PositionsAdded
;
2368
if (range.
PositionsAdded
>= range.PositionsRemoved)
2372
else if (range.
PositionsAdded
< range.PositionsRemoved)
2383
int delta = range.
PositionsAdded
- range.PositionsRemoved;
2442
int delta = range.
PositionsAdded
- range.PositionsRemoved;
2554
bool offsetSyncOk = (range.
PositionsAdded
== 0 || range.PositionsRemoved == 0);
2555
int lastCoveredCharOffset = range.StartIndex + Math.Max(range.
PositionsAdded
, range.PositionsRemoved);
2985
int selectionEnd = selectionRange.StartIndex + selectionRange.
PositionsAdded
;
MS\Internal\PtsHost\BackgroundFormatInfo.cs (2)
63
positionsAdded += _structuralCache.DtrList[dtrIndex].
PositionsAdded
- _structuralCache.DtrList[dtrIndex].PositionsRemoved;
68
if((dtrLast.StartIndex + positionsAdded + dtrLast.
PositionsAdded
) >= _cchAllText)
MS\Internal\PtsHost\DtrList.cs (11)
72
else if (startIndexOld <= _dtrs[i].StartIndex + _dtrs[i].
PositionsAdded
)
79
startIndexOld -= _dtrs[i].
PositionsAdded
- _dtrs[i].PositionsRemoved;
104
int adjust = Math.Min(_dtrs[i].
PositionsAdded
, dtr.PositionsRemoved - delta);
106
_dtrs[i].PositionsAdded += dtr.
PositionsAdded
- adjust;
118
int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].
PositionsAdded
- delta);
120
_dtrs[i].PositionsAdded += dtr.
PositionsAdded
- adjust;
168
int positionsAdded = range.
PositionsAdded
;
177
positionsAdded = rangeDistance + range.
PositionsAdded
;
215
if (dcpNew <= _dtrs[i].StartIndex + positionsAdded + _dtrs[i].
PositionsAdded
)
219
positionsAdded += _dtrs[i].
PositionsAdded
- _dtrs[i].PositionsRemoved;
276
_dtrs[index].PositionsAdded += dtrNext.
PositionsAdded
;
MS\Internal\PtsHost\TextParagraph.cs (2)
808
ddcpNew = dtrs[0].
PositionsAdded
;
815
ddcpNew += delta + dtrs[i].
PositionsAdded
;
MS\Internal\PtsHost\UpdateRecord.cs (1)
48
Dtr.PositionsAdded += delta + Next.Dtr.
PositionsAdded
;