2 writes to Offset
PresentationFramework (2)
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
2390_lineMetrics[i].Offset += delta; 2464_lineMetrics[i].Offset += delta;
29 references to Offset
PresentationFramework (29)
src\Framework\MS\Internal\Documents\TextBoxView.cs (29)
720bool firstLinePartiallyCovered = _lineMetrics[firstLineIndex].Offset < startOffset || 722bool lastLinePartiallyCovered = _lineMetrics[lastLineIndex].Offset < startOffset || 789nextLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward); 835if (position.Offset > _lineMetrics[lineIndex].Offset) 908else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset && 957if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset) 990ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 991ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 1195if (offset < record.Offset) 1309ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1580line.Format(metrics.Offset, formatWidth, width, lineProperties, new TextRunCache(), formatter); 1589_dirtyList.Merge(new DirtyTextRange(metrics.Offset, metrics.Length, metrics.Length, fromHighlightLayer: true)); 1742line.Format(metrics.Offset, formatWidth, width, lineProperties, new TextRunCache(), formatter); 1889line.Format(metrics.Offset, formatWidth, width, lineProperties, _cache.TextRunCache, _cache.TextFormatter); 2045int startOffset = Math.Max(_lineMetrics[lineIndex].Offset, unclippedStartOffset); 2079Invariant.Assert(endOffset == _lineMetrics[lineIndex].Offset || 2080endOffset == _lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength); 2131int lineStartOffset = _lineMetrics[lineIndex].Offset; 2161Invariant.Assert(endOffset == _lineMetrics[lineIndex].Offset || 2162endOffset == _lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength); 2407lineOffset = _lineMetrics[lineIndex].Offset; 2481lineOffset = _lineMetrics[lineIndex].Offset; 2525lineOffset = _lineMetrics[lineIndex].Offset; 2557lineOffset != _lineMetrics[lineIndex].Offset)) 2579lineOffset + line.Length <= _lineMetrics[lineIndex].Offset) 2604&& curLine.Offset > lastCoveredCharOffset 2608&& curLine.Offset == record.Offset 2964int viewportStart = _lineMetrics[firstLineIndex].Offset;