3 writes to _line
PresentationFramework (3)
MS\Internal\PtsHost\Line.cs (3)
83_line = null; 289_line = _host.TextFormatter.FormatLine(_host, dcp, _wrappingWidth, lineProps, textLineBreak, ctx.TextRunCache); 293_line = _host.TextFormatter.RecreateLine(_host, dcp, ctx.LineFormatLengthTarget, _wrappingWidth, lineProps, textLineBreak, ctx.TextRunCache);
50 references to _line
PresentationFramework (50)
MS\Internal\PtsHost\Line.cs (50)
73Debug.Assert(_line != null, "Line has been already disposed."); 76if (_line != null) 78_line.Dispose(); 110dvrSuppressible = Math.Max(0, TextDpi.ToTextDpi(_line.OverhangAfter)); 132double distance = _line.GetDistanceFromCharacterHit(new CharacterHit(dcpFigure, 0)); 295_runs = _line.GetTextRunSpans(); 394System.Windows.Media.TextFormatting.TextLine line = _line; 395if (_line.HasOverflowed && TextParagraph.Properties.TextTrimming != TextTrimming.None) 397line = _line.Collapse(GetCollapsingProps(_wrappingWidth, TextParagraph.Properties)); 513if (_line.HasOverflowed && TextParagraph.Properties.TextTrimming != TextTrimming.None) 518System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, TextParagraph.Properties)); 524textBounds = _line.GetTextBounds(cp, cch); 543if(_line == null) 548return _line.GetTextLineBreak(); 562if (_line.HasOverflowed && TextParagraph.Properties.TextTrimming != TextTrimming.None) 564System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, TextParagraph.Properties)); 569return _line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urDistance - delta)); 591if (_line.HasOverflowed && TextParagraph.Properties.TextTrimming != TextTrimming.None) 595System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, TextParagraph.Properties)); 604charIndex = _line.GetCharacterHitFromDistance(TextDpi.FromTextDpi(urOffset - delta)); 637if (!_line.HasOverflowed) 647System.Windows.Media.TextFormatting.TextLine collapsedLine = _line.Collapse(GetCollapsingProps(_wrappingWidth, TextParagraph.Properties)); 678Debug.Assert(dcp >= 0 && (dcp + cch <= _line.Length)); 680IList<TextSpan<TextRun>> spans = _line.GetTextRunSpans(); 688_line.Draw(ctx, new Point(delta, 0), InvertAxes.None); 757return _line.GetNextCaretCharacterHit(index); 768return _line.GetPreviousCaretCharacterHit(index); 779return _line.GetBackspaceCaretCharacterHit(index); 790return _line.IsAtCaretCharacterHit(charHit, _dcp); 810return TextDpi.ToTextDpi(_line.Start) + TextDpi.ToTextDpi(_indent) + CalculateUOffsetShift(); 824width = TextDpi.ToTextDpi(_line.WidthIncludingTrailingWhitespace) - TextDpi.ToTextDpi(_indent); 828width = TextDpi.ToTextDpi(_line.Width) - TextDpi.ToTextDpi(_indent); 842return TextDpi.ToTextDpi(_line.Height); 853return TextDpi.ToTextDpi(_line.Baseline); 865if (_line.NewlineLength == 0) 883return _line.Length; 894return _line.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); 905return _line.Length - _line.NewlineLength; 917return _line.DependentLength; 928return _line.IsTruncated; 941if (_line.NewlineLength == 0) 1008if (_line.HasOverflowed && TextParagraph.Properties.TextTrimming != TextTrimming.None) 1012System.Windows.Media.TextFormatting.TextLine line = _line.Collapse(GetCollapsingProps(_wrappingWidth, TextParagraph.Properties)); 1018textBounds = _line.GetTextBounds(cp, cch); 1110width = TextDpi.ToTextDpi(_line.WidthIncludingTrailingWhitespace); 1111trailingSpacesDelta = TextDpi.ToTextDpi(_line.Width) - width; 1116width = TextDpi.ToTextDpi(_line.Width); 1165return (_line.NewlineLength > 0); 1214if (_line.HasOverflowed)