8 writes to PositionsAdded
PresentationFramework (8)
MS\Internal\PtsHost\DirtyTextRange.cs (4)
28
PositionsAdded
= positionsAdded;
42
PositionsAdded
= 0;
49
PositionsAdded
= change.Count;
57
PositionsAdded
= change.Count;
MS\Internal\PtsHost\DtrList.cs (3)
102
_dtrs[i].
PositionsAdded
+= dtr.PositionsAdded - adjust;
116
_dtrs[i].
PositionsAdded
+= dtr.PositionsAdded - adjust;
272
_dtrs[index].
PositionsAdded
+= dtrNext.PositionsAdded;
MS\Internal\PtsHost\UpdateRecord.cs (1)
45
Dtr.
PositionsAdded
+= delta + Next.Dtr.PositionsAdded;
29 references to PositionsAdded
PresentationFramework (29)
MS\Internal\Documents\TextBoxView.cs (13)
1544
&& _dirtyList.DtrsFromRange(currentSelectionRange.StartIndex, currentSelectionRange.
PositionsAdded
) != null)
1553
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);
2344
int positionsAdded = range.
PositionsAdded
;
2358
positionsAdded += rangeDistance + range.
PositionsAdded
;
2366
if (range.
PositionsAdded
>= range.PositionsRemoved)
2370
else if (range.
PositionsAdded
< range.PositionsRemoved)
2381
int delta = range.
PositionsAdded
- range.PositionsRemoved;
2440
int delta = range.
PositionsAdded
- range.PositionsRemoved;
2552
bool offsetSyncOk = (range.
PositionsAdded
== 0 || range.PositionsRemoved == 0);
2553
int lastCoveredCharOffset = range.StartIndex + Math.Max(range.
PositionsAdded
, range.PositionsRemoved);
2983
int selectionEnd = selectionRange.StartIndex + selectionRange.
PositionsAdded
;
MS\Internal\PtsHost\BackgroundFormatInfo.cs (2)
62
positionsAdded += _structuralCache.DtrList[dtrIndex].
PositionsAdded
- _structuralCache.DtrList[dtrIndex].PositionsRemoved;
67
if((dtrLast.StartIndex + positionsAdded + dtrLast.
PositionsAdded
) >= _cchAllText)
MS\Internal\PtsHost\DtrList.cs (11)
68
else if (startIndexOld <= _dtrs[i].StartIndex + _dtrs[i].
PositionsAdded
)
75
startIndexOld -= _dtrs[i].
PositionsAdded
- _dtrs[i].PositionsRemoved;
100
int adjust = Math.Min(_dtrs[i].
PositionsAdded
, dtr.PositionsRemoved - delta);
102
_dtrs[i].PositionsAdded += dtr.
PositionsAdded
- adjust;
114
int adjust = Math.Min(dtr.PositionsRemoved, _dtrs[i].
PositionsAdded
- delta);
116
_dtrs[i].PositionsAdded += dtr.
PositionsAdded
- adjust;
164
int positionsAdded = range.
PositionsAdded
;
173
positionsAdded = rangeDistance + range.
PositionsAdded
;
211
if (dcpNew <= _dtrs[i].StartIndex + positionsAdded + _dtrs[i].
PositionsAdded
)
215
positionsAdded += _dtrs[i].
PositionsAdded
- _dtrs[i].PositionsRemoved;
272
_dtrs[index].PositionsAdded += dtrNext.
PositionsAdded
;
MS\Internal\PtsHost\TextParagraph.cs (2)
801
ddcpNew = dtrs[0].
PositionsAdded
;
808
ddcpNew += delta + dtrs[i].
PositionsAdded
;
MS\Internal\PtsHost\UpdateRecord.cs (1)
45
Dtr.PositionsAdded += delta + Next.Dtr.
PositionsAdded
;