2 writes to Offset
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (2)
2394_lineMetrics[i].Offset += delta; 2468_lineMetrics[i].Offset += delta;
29 references to Offset
PresentationFramework (29)
MS\Internal\Documents\TextBoxView.cs (29)
714bool firstLinePartiallyCovered = _lineMetrics[firstLineIndex].Offset < startOffset || 716bool lastLinePartiallyCovered = _lineMetrics[lastLineIndex].Offset < startOffset || 783nextLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward); 829if (position.Offset > _lineMetrics[lineIndex].Offset) 902else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset && 951if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset) 984ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 985ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 1191if (offset < record.Offset) 1307ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1579line.Format(metrics.Offset, formatWidth, width, lineProperties, new TextRunCache(), formatter); 1588_dirtyList.Merge(new DirtyTextRange(metrics.Offset, metrics.Length, metrics.Length, fromHighlightLayer: true)); 1744line.Format(metrics.Offset, formatWidth, width, lineProperties, new TextRunCache(), formatter); 1891line.Format(metrics.Offset, formatWidth, width, lineProperties, _cache.TextRunCache, _cache.TextFormatter); 2049int startOffset = Math.Max(_lineMetrics[lineIndex].Offset, unclippedStartOffset); 2083Invariant.Assert(endOffset == _lineMetrics[lineIndex].Offset || 2084endOffset == _lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength); 2135int lineStartOffset = _lineMetrics[lineIndex].Offset; 2165Invariant.Assert(endOffset == _lineMetrics[lineIndex].Offset || 2166endOffset == _lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength); 2411lineOffset = _lineMetrics[lineIndex].Offset; 2485lineOffset = _lineMetrics[lineIndex].Offset; 2529lineOffset = _lineMetrics[lineIndex].Offset; 2561lineOffset != _lineMetrics[lineIndex].Offset)) 2583lineOffset + line.Length <= _lineMetrics[lineIndex].Offset) 2608&& curLine.Offset > lastCoveredCharOffset 2612&& curLine.Offset == record.Offset 2987int viewportStart = _lineMetrics[firstLineIndex].Offset;