5 writes to StartIndex
PresentationFramework (5)
MS\Internal\PtsHost\DirtyTextRange.cs (2)
29
StartIndex
= startIndex;
42
StartIndex
= change.ITextPosition.Offset;
MS\Internal\PtsHost\DtrList.cs (3)
83
dtr.
StartIndex
= startIndexOld;
105
_dtrs[i].
StartIndex
= dtr.StartIndex;
252
dtr.
StartIndex
+= positionsAdded;
58 references to StartIndex
PresentationFramework (58)
MS\Internal\Documents\TextBoxView.cs (20)
1546
&& _dirtyList.DtrsFromRange(currentSelectionRange.
StartIndex
, currentSelectionRange.PositionsAdded) != null)
1555
int[] offsets = new int[] { currentSelectionRange.
StartIndex
, currentSelectionRange.
StartIndex
+ currentSelectionRange.PositionsAdded };
1937
int firstLineIndex = GetLineIndexFromOffset(range.
StartIndex
, LogicalDirection.Forward);
1938
int endOffset = Math.Min(range.
StartIndex
+ range.PositionsAdded, _host.TextContainer.SymbolCount);
2333
if (range.
StartIndex
> _lineMetrics[_lineMetrics.Count - 1].EndOffset)
2345
int previousOffset = range.
StartIndex
;
2353
if (range.
StartIndex
> _lineMetrics[_lineMetrics.Count - 1].EndOffset)
2359
int rangeDistance = range.
StartIndex
- previousOffset;
2363
previousOffset = range.
StartIndex
;
2366
range = new DirtyTextRange(_dirtyList[0].
StartIndex
, positionsAdded, positionsRemoved);
2386
int lineIndex = GetLineIndexFromOffset(range.
StartIndex
, LogicalDirection.Forward);
2445
int firstLineIndex = GetLineIndexFromOffset(range.
StartIndex
);
2450
int endOffset = range.
StartIndex
+ -delta - 1;
2455
if (range.
StartIndex
== endOffset)
2495
(range.
StartIndex
> lineOffset || range.
StartIndex
+ -delta < _lineMetrics[lineIndex].EndOffset))
2555
int lastCoveredCharOffset = range.
StartIndex
+ Math.Max(range.PositionsAdded, range.PositionsRemoved);
2984
int selectionStart = selectionRange.
StartIndex
;
2985
int selectionEnd = selectionRange.
StartIndex
+ selectionRange.PositionsAdded;
MS\Internal\PtsHost\BackgroundFormatInfo.cs (2)
68
if((dtrLast.
StartIndex
+ positionsAdded + dtrLast.PositionsAdded) >= _cchAllText)
71
_lastCPUninterruptible = dtrLast.
StartIndex
+ positionsAdded;
MS\Internal\PtsHost\ContainerParagraph.cs (9)
387
if (dcpPara < dtr.
StartIndex
)
397
dcpPara + para.LastFormatCch > dtr.
StartIndex
||
398
((dcpPara + para.LastFormatCch == dtr.
StartIndex
) && para is TextParagraph)
1264
if (dcpPara < ur.Dtr.
StartIndex
)
1274
dcpPara + para.LastFormatCch > ur.Dtr.
StartIndex
||
1275
(dcpPara + para.LastFormatCch == ur.Dtr.
StartIndex
&& para is TextParagraph))
1293
else if (dcpPara < ur.Dtr.
StartIndex
)
1306
if ( (dcpPara + para.LastFormatCch > ur.Dtr.
StartIndex
+ ur.Dtr.PositionsRemoved)
1307
|| (dcpPara + para.LastFormatCch == ur.Dtr.
StartIndex
+ ur.Dtr.PositionsRemoved && ur.ChangeType != PTS.FSKCHANGE.fskchNew))
MS\Internal\PtsHost\DtrList.cs (20)
47
int startIndexOld = dtr.
StartIndex
;
61
if (startIndexOld < _dtrs[i].
StartIndex
)
63
if (startIndexOld + dtr.PositionsRemoved > _dtrs[i].
StartIndex
)
72
else if (startIndexOld <= _dtrs[i].
StartIndex
+ _dtrs[i].PositionsAdded)
101
if (dtr.
StartIndex
< _dtrs[i].
StartIndex
)
103
int delta = _dtrs[i].
StartIndex
- dtr.
StartIndex
;
105
_dtrs[i].StartIndex = dtr.
StartIndex
;
117
int delta = dtr.
StartIndex
- _dtrs[i].
StartIndex
;
167
int previousOffset = range.
StartIndex
;
176
int rangeDistance = range.
StartIndex
- previousOffset;
183
previousOffset = range.
StartIndex
;
186
return new DirtyTextRange(_dtrs[0].
StartIndex
, positionsAdded, positionsRemoved, fromHighlightLayer);
215
if (dcpNew <= _dtrs[i].
StartIndex
+ positionsAdded + _dtrs[i].PositionsAdded)
230
if (dcpNew - positionsAdded + cchOld <= _dtrs[i].
StartIndex
+ _dtrs[i].PositionsRemoved)
233
if (dcpNew - positionsAdded + cchOld < _dtrs[i].
StartIndex
)
273
if (dtrNext.
StartIndex
<= _dtrs[index].
StartIndex
+ _dtrs[index].PositionsRemoved)
MS\Internal\PtsHost\FloaterParagraph.cs (1)
782
_mainTextSegment.InvalidateStructure(dtrs[0].
StartIndex
);
MS\Internal\PtsHost\Section.cs (1)
450
_mainTextSegment.InvalidateStructure(dtrs[0].
StartIndex
);
MS\Internal\PtsHost\TextParagraph.cs (3)
807
dcpStart = dtrs[0].
StartIndex
- ParagraphStartCharacterPosition;
814
int delta = dtrs[i].
StartIndex
- dtrs[i-1].
StartIndex
;
MS\Internal\PtsHost\UpdateRecord.cs (2)
45
int delta = Next.Dtr.
StartIndex
- Dtr.
StartIndex
;