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