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