2 writes to _line
PresentationFramework (2)
MS\Internal\Text\Line.cs (2)
36
_line
= null;
83
_line
= _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
46 references to _line
PresentationFramework (46)
MS\Internal\Text\ComplexLine.cs (5)
150
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
225
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
264
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
268
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
276
charHit =
_line
.GetCharacterHitFromDistance(offset - delta);
MS\Internal\Text\Line.cs (41)
35
_line
?.Dispose();
105
Debug.Assert(
_line
!= null, "Rendering line that has not been measured yet.");
108
System.Windows.Media.TextFormatting.TextLine line =
_line
;
109
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
111
line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
161
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
165
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
171
textBounds =
_line
.GetTextBounds(cp, cch);
197
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
199
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
204
return
_line
.GetCharacterHitFromDistance(distance - delta);
216
return
_line
.GetNextCaretCharacterHit(index);
228
return
_line
.GetPreviousCaretCharacterHit(index);
240
return
_line
.GetBackspaceCaretCharacterHit(index);
251
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
279
if(
_line
== null)
284
return
_line
.GetTextLineBreak();
300
if (!
_line
.HasOverflowed) { return 0; }
304
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
330
if (!
_line
.HasOverflowed)
340
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
366
return
_line
.WidthIncludingTrailingWhitespace;
370
return
_line
.Width;
384
return
_line
.Start + CalculateXOffsetShift();
388
return
_line
.Start;
396
internal double Height { get { return
_line
.Height; } }
401
internal double BaselineOffset { get { return
_line
.Baseline; } }
411
if (
_line
.NewlineLength == 0) { return false; }
414
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
422
internal int Length { get { return
_line
.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } }
427
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
455
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
459
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
465
textBounds =
_line
.GetTextBounds(cp, cch);
521
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
525
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);
555
if (
_line
.HasOverflowed || _showParagraphEllipsis)
570
return (
_line
.NewlineLength > 0);