2 writes to _line
PresentationFramework (2)
MS\Internal\Text\Line.cs (2)
38_line = null; 86_line = _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
47 references to _line
PresentationFramework (47)
MS\Internal\Text\ComplexLine.cs (5)
153IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 228IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 267if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 271System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 279charHit = _line.GetCharacterHitFromDistance(offset - delta);
MS\Internal\Text\Line.cs (42)
35if (_line != null) 37_line.Dispose(); 108Debug.Assert(_line != null, "Rendering line that has not been measured yet."); 111System.Windows.Media.TextFormatting.TextLine line = _line; 112if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 114line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 164if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 168System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 174textBounds = _line.GetTextBounds(cp, cch); 200if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 202System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 207return _line.GetCharacterHitFromDistance(distance - delta); 219return _line.GetNextCaretCharacterHit(index); 231return _line.GetPreviousCaretCharacterHit(index); 243return _line.GetBackspaceCaretCharacterHit(index); 254return _line.IsAtCaretCharacterHit(charHit, _dcp); 282if(_line == null) 287return _line.GetTextLineBreak(); 303if (!_line.HasOverflowed) { return 0; } 307System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 333if (!_line.HasOverflowed) 343System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 369return _line.WidthIncludingTrailingWhitespace; 373return _line.Width; 387return _line.Start + CalculateXOffsetShift(); 391return _line.Start; 399internal double Height { get { return _line.Height; } } 404internal double BaselineOffset { get { return _line.Baseline; } } 414if (_line.NewlineLength == 0) { return false; } 417IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 425internal int Length { get { return _line.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } } 430internal int ContentLength { get { return _line.Length - _line.NewlineLength; } } 458if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 462System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 468textBounds = _line.GetTextBounds(cp, cch); 524return (_line.Width - _line.WidthIncludingTrailingWhitespace) / 2; 528return (_line.Width - _line.WidthIncludingTrailingWhitespace); 558if (_line.HasOverflowed || _showParagraphEllipsis) 573return (_line.NewlineLength > 0);