2 writes to _line
PresentationFramework (2)
MS\Internal\Text\Line.cs (2)
46
_line
= null;
94
_line
= _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
47 references to _line
PresentationFramework (47)
MS\Internal\Text\ComplexLine.cs (5)
159
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
234
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
273
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
277
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
285
charHit =
_line
.GetCharacterHitFromDistance(offset - delta);
MS\Internal\Text\Line.cs (42)
43
if (
_line
!= null)
45
_line
.Dispose();
116
Debug.Assert(
_line
!= null, "Rendering line that has not been measured yet.");
119
System.Windows.Media.TextFormatting.TextLine line =
_line
;
120
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
122
line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
172
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
176
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
182
textBounds =
_line
.GetTextBounds(cp, cch);
208
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
210
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
215
return
_line
.GetCharacterHitFromDistance(distance - delta);
227
return
_line
.GetNextCaretCharacterHit(index);
239
return
_line
.GetPreviousCaretCharacterHit(index);
251
return
_line
.GetBackspaceCaretCharacterHit(index);
262
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
290
if(
_line
== null)
295
return
_line
.GetTextLineBreak();
311
if (!
_line
.HasOverflowed) { return 0; }
315
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
341
if (!
_line
.HasOverflowed)
351
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
377
return
_line
.WidthIncludingTrailingWhitespace;
381
return
_line
.Width;
395
return
_line
.Start + CalculateXOffsetShift();
399
return
_line
.Start;
407
internal double Height { get { return
_line
.Height; } }
412
internal double BaselineOffset { get { return
_line
.Baseline; } }
422
if (
_line
.NewlineLength == 0) { return false; }
425
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
433
internal int Length { get { return
_line
.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } }
438
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
466
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
470
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
476
textBounds =
_line
.GetTextBounds(cp, cch);
532
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
536
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);
566
if (
_line
.HasOverflowed || _showParagraphEllipsis)
581
return (
_line
.NewlineLength > 0);