2 writes to _line
PresentationFramework (2)
MS\Internal\Text\Line.cs (2)
46_line = null; 94_line = _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
47 references to _line
PresentationFramework (47)
MS\Internal\Text\ComplexLine.cs (5)
159IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 234IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 273if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 277System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 285charHit = _line.GetCharacterHitFromDistance(offset - delta);
MS\Internal\Text\Line.cs (42)
43if (_line != null) 45_line.Dispose(); 116Debug.Assert(_line != null, "Rendering line that has not been measured yet."); 119System.Windows.Media.TextFormatting.TextLine line = _line; 120if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 122line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 172if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 176System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 182textBounds = _line.GetTextBounds(cp, cch); 208if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 210System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 215return _line.GetCharacterHitFromDistance(distance - delta); 227return _line.GetNextCaretCharacterHit(index); 239return _line.GetPreviousCaretCharacterHit(index); 251return _line.GetBackspaceCaretCharacterHit(index); 262return _line.IsAtCaretCharacterHit(charHit, _dcp); 290if(_line == null) 295return _line.GetTextLineBreak(); 311if (!_line.HasOverflowed) { return 0; } 315System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 341if (!_line.HasOverflowed) 351System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 377return _line.WidthIncludingTrailingWhitespace; 381return _line.Width; 395return _line.Start + CalculateXOffsetShift(); 399return _line.Start; 407internal double Height { get { return _line.Height; } } 412internal double BaselineOffset { get { return _line.Baseline; } } 422if (_line.NewlineLength == 0) { return false; } 425IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 433internal int Length { get { return _line.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } } 438internal int ContentLength { get { return _line.Length - _line.NewlineLength; } } 466if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 470System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 476textBounds = _line.GetTextBounds(cp, cch); 532return (_line.Width - _line.WidthIncludingTrailingWhitespace) / 2; 536return (_line.Width - _line.WidthIncludingTrailingWhitespace); 566if (_line.HasOverflowed || _showParagraphEllipsis) 581return (_line.NewlineLength > 0);