2 writes to _line
PresentationFramework (2)
src\Framework\MS\Internal\Text\Line.cs (2)
49_line = null; 97_line = _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
47 references to _line
PresentationFramework (47)
src\Framework\MS\Internal\Text\ComplexLine.cs (5)
162IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 237IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 276if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 280System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 289charHit = _line.GetCharacterHitFromDistance(offset - delta);
src\Framework\MS\Internal\Text\Line.cs (42)
46if (_line != null) 48_line.Dispose(); 119Debug.Assert(_line != null, "Rendering line that has not been measured yet."); 122System.Windows.Media.TextFormatting.TextLine line = _line; 123if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 125line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 175if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 179System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 185textBounds = _line.GetTextBounds(cp, cch); 211if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 213System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 218return _line.GetCharacterHitFromDistance(distance - delta); 230return _line.GetNextCaretCharacterHit(index); 242return _line.GetPreviousCaretCharacterHit(index); 254return _line.GetBackspaceCaretCharacterHit(index); 265return _line.IsAtCaretCharacterHit(charHit, _dcp); 293if(_line == null) 298return _line.GetTextLineBreak(); 314if (!_line.HasOverflowed) { return 0; } 318System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 344if (!_line.HasOverflowed) 354System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 380return _line.WidthIncludingTrailingWhitespace; 384return _line.Width; 398return _line.Start + CalculateXOffsetShift(); 402return _line.Start; 410internal double Height { get { return _line.Height; } } 415internal double BaselineOffset { get { return _line.Baseline; } } 425if (_line.NewlineLength == 0) { return false; } 428IList<TextSpan<TextRun>> runs = _line.GetTextRunSpans(); 436internal int Length { get { return _line.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } } 441internal int ContentLength { get { return _line.Length - _line.NewlineLength; } } 469if (_line.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None) 473System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties)); 479textBounds = _line.GetTextBounds(cp, cch); 535return (_line.Width - _line.WidthIncludingTrailingWhitespace) / 2; 539return (_line.Width - _line.WidthIncludingTrailingWhitespace); 569if (_line.HasOverflowed || _showParagraphEllipsis) 584return (_line.NewlineLength > 0);