2 writes to _line
PresentationFramework (2)
MS\Internal\Text\Line.cs (2)
36_line = null; 83_line = _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
46 references to _line
PresentationFramework (46)
MS\Internal\Text\ComplexLine.cs (5)
150IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 225IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 264if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 268System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 276charHit = _line.GetCharacterHitFromDistance(offset - delta);
MS\Internal\Text\Line.cs (41)
35_line?.Dispose(); 105Debug.Assert(_line != null, "Rendering line that has not been measured yet."); 108System.Windows.Media.TextFormatting.TextLine line = _line; 109if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 111line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 161if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 165System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 171textBounds = _line.GetTextBounds(cp, cch); 197if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 199System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 204return _line.GetCharacterHitFromDistance(distance - delta); 216return _line.GetNextCaretCharacterHit(index); 228return _line.GetPreviousCaretCharacterHit(index); 240return _line.GetBackspaceCaretCharacterHit(index); 251return _line.IsAtCaretCharacterHit(charHit, _dcp); 279if(_line == null) 284return _line.GetTextLineBreak(); 300if (!_line.HasOverflowed) { return 0; } 304System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 330if (!_line.HasOverflowed) 340System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 366return _line.WidthIncludingTrailingWhitespace; 370return _line.Width; 384return _line.Start + CalculateXOffsetShift(); 388return _line.Start; 396internal double Height { get { return _line.Height; } } 401internal double BaselineOffset { get { return _line.Baseline; } } 411if (_line.NewlineLength == 0) { return false; } 414IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 422internal int Length { get { return _line.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } } 427internal int ContentLength { get { return _line.Length - _line.NewlineLength; } } 455if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 459System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 465textBounds = _line.GetTextBounds(cp, cch); 521return (_line.Width - _line.WidthIncludingTrailingWhitespace) / 2; 525return (_line.Width - _line.WidthIncludingTrailingWhitespace); 555if (_line.HasOverflowed || _showParagraphEllipsis) 570return (_line.NewlineLength > 0);