5 writes to StartIndex
PresentationFramework (5)
src\Framework\MS\Internal\PtsHost\DirtyTextRange.cs (2)
34
StartIndex
= startIndex;
47
StartIndex
= change.ITextPosition.Offset;
src\Framework\MS\Internal\PtsHost\DtrList.cs (3)
87
dtr.
StartIndex
= startIndexOld;
109
_dtrs[i].
StartIndex
= dtr.StartIndex;
256
dtr.
StartIndex
+= positionsAdded;
58 references to StartIndex
PresentationFramework (58)
src\Framework\MS\Internal\Documents\TextBoxView.cs (20)
1547
&& _dirtyList.DtrsFromRange(currentSelectionRange.
StartIndex
, currentSelectionRange.PositionsAdded) != null)
1556
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);
2329
if (range.
StartIndex
> _lineMetrics[_lineMetrics.Count - 1].EndOffset)
2341
int previousOffset = range.
StartIndex
;
2349
if (range.
StartIndex
> _lineMetrics[_lineMetrics.Count - 1].EndOffset)
2355
int rangeDistance = range.
StartIndex
- previousOffset;
2359
previousOffset = range.
StartIndex
;
2362
range = new DirtyTextRange(_dirtyList[0].
StartIndex
, positionsAdded, positionsRemoved);
2382
int lineIndex = GetLineIndexFromOffset(range.
StartIndex
, LogicalDirection.Forward);
2441
int firstLineIndex = GetLineIndexFromOffset(range.
StartIndex
);
2446
int endOffset = range.
StartIndex
+ -delta - 1;
2451
if (range.
StartIndex
== endOffset)
2491
(range.
StartIndex
> lineOffset || range.
StartIndex
+ -delta < _lineMetrics[lineIndex].EndOffset))
2551
int lastCoveredCharOffset = range.
StartIndex
+ Math.Max(range.PositionsAdded, range.PositionsRemoved);
2961
int selectionStart = selectionRange.
StartIndex
;
2962
int selectionEnd = selectionRange.
StartIndex
+ selectionRange.PositionsAdded;
src\Framework\MS\Internal\PtsHost\BackgroundFormatInfo.cs (2)
72
if((dtrLast.
StartIndex
+ positionsAdded + dtrLast.PositionsAdded) >= _cchAllText)
75
_lastCPUninterruptible = dtrLast.
StartIndex
+ positionsAdded;
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (9)
392
if (dcpPara < dtr.
StartIndex
)
402
dcpPara + para.LastFormatCch > dtr.
StartIndex
||
403
((dcpPara + para.LastFormatCch == dtr.
StartIndex
) && para is TextParagraph)
1290
if (dcpPara < ur.Dtr.
StartIndex
)
1300
dcpPara + para.LastFormatCch > ur.Dtr.
StartIndex
||
1301
(dcpPara + para.LastFormatCch == ur.Dtr.
StartIndex
&& para is TextParagraph))
1319
else if (dcpPara < ur.Dtr.
StartIndex
)
1332
if ( (dcpPara + para.LastFormatCch > ur.Dtr.
StartIndex
+ ur.Dtr.PositionsRemoved)
1333
|| (dcpPara + para.LastFormatCch == ur.Dtr.
StartIndex
+ ur.Dtr.PositionsRemoved && ur.ChangeType != PTS.FSKCHANGE.fskchNew))
src\Framework\MS\Internal\PtsHost\DtrList.cs (20)
51
int startIndexOld = dtr.
StartIndex
;
65
if (startIndexOld < _dtrs[i].
StartIndex
)
67
if (startIndexOld + dtr.PositionsRemoved > _dtrs[i].
StartIndex
)
76
else if (startIndexOld <= _dtrs[i].
StartIndex
+ _dtrs[i].PositionsAdded)
105
if (dtr.
StartIndex
< _dtrs[i].
StartIndex
)
107
int delta = _dtrs[i].
StartIndex
- dtr.
StartIndex
;
109
_dtrs[i].StartIndex = dtr.
StartIndex
;
121
int delta = dtr.
StartIndex
- _dtrs[i].
StartIndex
;
171
int previousOffset = range.
StartIndex
;
180
int rangeDistance = range.
StartIndex
- previousOffset;
187
previousOffset = range.
StartIndex
;
190
return new DirtyTextRange(_dtrs[0].
StartIndex
, positionsAdded, positionsRemoved, fromHighlightLayer);
219
if (dcpNew <= _dtrs[i].
StartIndex
+ positionsAdded + _dtrs[i].PositionsAdded)
234
if (dcpNew - positionsAdded + cchOld <= _dtrs[i].
StartIndex
+ _dtrs[i].PositionsRemoved)
237
if (dcpNew - positionsAdded + cchOld < _dtrs[i].
StartIndex
)
277
if (dtrNext.
StartIndex
<= _dtrs[index].
StartIndex
+ _dtrs[index].PositionsRemoved)
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (1)
812
_mainTextSegment.InvalidateStructure(dtrs[0].
StartIndex
);
src\Framework\MS\Internal\PtsHost\Section.cs (1)
465
_mainTextSegment.InvalidateStructure(dtrs[0].
StartIndex
);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (3)
814
dcpStart = dtrs[0].
StartIndex
- ParagraphStartCharacterPosition;
821
int delta = dtrs[i].
StartIndex
- dtrs[i-1].
StartIndex
;
src\Framework\MS\Internal\PtsHost\UpdateRecord.cs (2)
48
int delta = Next.Dtr.
StartIndex
- Dtr.
StartIndex
;