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