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