2 writes to _line
PresentationFramework (2)
MS\Internal\Text\Line.cs (2)
39_line = null; 87_line = _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
47 references to _line
PresentationFramework (47)
MS\Internal\Text\ComplexLine.cs (5)
154IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 229IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 268if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 272System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 280charHit = _line.GetCharacterHitFromDistance(offset - delta);
MS\Internal\Text\Line.cs (42)
36if (_line != null) 38_line.Dispose(); 109Debug.Assert(_line != null, "Rendering line that has not been measured yet."); 112System.Windows.Media.TextFormatting.TextLine line = _line; 113if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 115line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 165if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 169System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 175textBounds = _line.GetTextBounds(cp, cch); 201if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 203System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 208return _line.GetCharacterHitFromDistance(distance - delta); 220return _line.GetNextCaretCharacterHit(index); 232return _line.GetPreviousCaretCharacterHit(index); 244return _line.GetBackspaceCaretCharacterHit(index); 255return _line.IsAtCaretCharacterHit(charHit, _dcp); 283if(_line == null) 288return _line.GetTextLineBreak(); 304if (!_line.HasOverflowed) { return 0; } 308System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 334if (!_line.HasOverflowed) 344System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 370return _line.WidthIncludingTrailingWhitespace; 374return _line.Width; 388return _line.Start + CalculateXOffsetShift(); 392return _line.Start; 400internal double Height { get { return _line.Height; } } 405internal double BaselineOffset { get { return _line.Baseline; } } 415if (_line.NewlineLength == 0) { return false; } 418IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 426internal int Length { get { return _line.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } } 431internal int ContentLength { get { return _line.Length - _line.NewlineLength; } } 459if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 463System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 469textBounds = _line.GetTextBounds(cp, cch); 525return (_line.Width - _line.WidthIncludingTrailingWhitespace) / 2; 529return (_line.Width - _line.WidthIncludingTrailingWhitespace); 559if (_line.HasOverflowed || _showParagraphEllipsis) 574return (_line.NewlineLength > 0);