5 writes to StartIndex
PresentationFramework (5)
MS\Internal\PtsHost\DirtyTextRange.cs (2)
27
StartIndex
= startIndex;
40
StartIndex
= change.ITextPosition.Offset;
MS\Internal\PtsHost\DtrList.cs (3)
79
dtr.
StartIndex
= startIndexOld;
101
_dtrs[i].
StartIndex
= dtr.StartIndex;
248
dtr.
StartIndex
+= positionsAdded;
58 references to StartIndex
PresentationFramework (58)
MS\Internal\Documents\TextBoxView.cs (20)
1544
&& _dirtyList.DtrsFromRange(currentSelectionRange.
StartIndex
, currentSelectionRange.PositionsAdded) != null)
1553
int[] offsets = new int[] { currentSelectionRange.
StartIndex
, currentSelectionRange.
StartIndex
+ currentSelectionRange.PositionsAdded };
1935
int firstLineIndex = GetLineIndexFromOffset(range.
StartIndex
, LogicalDirection.Forward);
1936
int endOffset = Math.Min(range.
StartIndex
+ range.PositionsAdded, _host.TextContainer.SymbolCount);
2331
if (range.
StartIndex
> _lineMetrics[_lineMetrics.Count - 1].EndOffset)
2343
int previousOffset = range.
StartIndex
;
2351
if (range.
StartIndex
> _lineMetrics[_lineMetrics.Count - 1].EndOffset)
2357
int rangeDistance = range.
StartIndex
- previousOffset;
2361
previousOffset = range.
StartIndex
;
2364
range = new DirtyTextRange(_dirtyList[0].
StartIndex
, positionsAdded, positionsRemoved);
2384
int lineIndex = GetLineIndexFromOffset(range.
StartIndex
, LogicalDirection.Forward);
2443
int firstLineIndex = GetLineIndexFromOffset(range.
StartIndex
);
2448
int endOffset = range.
StartIndex
+ -delta - 1;
2453
if (range.
StartIndex
== endOffset)
2493
(range.
StartIndex
> lineOffset || range.
StartIndex
+ -delta < _lineMetrics[lineIndex].EndOffset))
2553
int lastCoveredCharOffset = range.
StartIndex
+ Math.Max(range.PositionsAdded, range.PositionsRemoved);
2982
int selectionStart = selectionRange.
StartIndex
;
2983
int selectionEnd = selectionRange.
StartIndex
+ selectionRange.PositionsAdded;
MS\Internal\PtsHost\BackgroundFormatInfo.cs (2)
67
if((dtrLast.
StartIndex
+ positionsAdded + dtrLast.PositionsAdded) >= _cchAllText)
70
_lastCPUninterruptible = dtrLast.
StartIndex
+ positionsAdded;
MS\Internal\PtsHost\ContainerParagraph.cs (9)
382
if (dcpPara < dtr.
StartIndex
)
392
dcpPara + para.LastFormatCch > dtr.
StartIndex
||
393
((dcpPara + para.LastFormatCch == dtr.
StartIndex
) && para is TextParagraph)
1259
if (dcpPara < ur.Dtr.
StartIndex
)
1269
dcpPara + para.LastFormatCch > ur.Dtr.
StartIndex
||
1270
(dcpPara + para.LastFormatCch == ur.Dtr.
StartIndex
&& para is TextParagraph))
1288
else if (dcpPara < ur.Dtr.
StartIndex
)
1301
if ( (dcpPara + para.LastFormatCch > ur.Dtr.
StartIndex
+ ur.Dtr.PositionsRemoved)
1302
|| (dcpPara + para.LastFormatCch == ur.Dtr.
StartIndex
+ ur.Dtr.PositionsRemoved && ur.ChangeType != PTS.FSKCHANGE.fskchNew))
MS\Internal\PtsHost\DtrList.cs (20)
43
int startIndexOld = dtr.
StartIndex
;
57
if (startIndexOld < _dtrs[i].
StartIndex
)
59
if (startIndexOld + dtr.PositionsRemoved > _dtrs[i].
StartIndex
)
68
else if (startIndexOld <= _dtrs[i].
StartIndex
+ _dtrs[i].PositionsAdded)
97
if (dtr.
StartIndex
< _dtrs[i].
StartIndex
)
99
int delta = _dtrs[i].
StartIndex
- dtr.
StartIndex
;
101
_dtrs[i].StartIndex = dtr.
StartIndex
;
113
int delta = dtr.
StartIndex
- _dtrs[i].
StartIndex
;
163
int previousOffset = range.
StartIndex
;
172
int rangeDistance = range.
StartIndex
- previousOffset;
179
previousOffset = range.
StartIndex
;
182
return new DirtyTextRange(_dtrs[0].
StartIndex
, positionsAdded, positionsRemoved, fromHighlightLayer);
211
if (dcpNew <= _dtrs[i].
StartIndex
+ positionsAdded + _dtrs[i].PositionsAdded)
226
if (dcpNew - positionsAdded + cchOld <= _dtrs[i].
StartIndex
+ _dtrs[i].PositionsRemoved)
229
if (dcpNew - positionsAdded + cchOld < _dtrs[i].
StartIndex
)
269
if (dtrNext.
StartIndex
<= _dtrs[index].
StartIndex
+ _dtrs[index].PositionsRemoved)
MS\Internal\PtsHost\FloaterParagraph.cs (1)
778
_mainTextSegment.InvalidateStructure(dtrs[0].
StartIndex
);
MS\Internal\PtsHost\Section.cs (1)
448
_mainTextSegment.InvalidateStructure(dtrs[0].
StartIndex
);
MS\Internal\PtsHost\TextParagraph.cs (3)
800
dcpStart = dtrs[0].
StartIndex
- ParagraphStartCharacterPosition;
807
int delta = dtrs[i].
StartIndex
- dtrs[i-1].
StartIndex
;
MS\Internal\PtsHost\UpdateRecord.cs (2)
42
int delta = Next.Dtr.
StartIndex
- Dtr.
StartIndex
;