2 writes to _line
PresentationFramework (2)
MS\Internal\Text\Line.cs (2)
39
_line
= null;
87
_line
= _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
47 references to _line
PresentationFramework (47)
MS\Internal\Text\ComplexLine.cs (5)
154
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
229
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
268
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
272
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
280
charHit =
_line
.GetCharacterHitFromDistance(offset - delta);
MS\Internal\Text\Line.cs (42)
36
if (
_line
!= null)
38
_line
.Dispose();
109
Debug.Assert(
_line
!= null, "Rendering line that has not been measured yet.");
112
System.Windows.Media.TextFormatting.TextLine line =
_line
;
113
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
115
line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
165
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
169
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
175
textBounds =
_line
.GetTextBounds(cp, cch);
201
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
203
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
208
return
_line
.GetCharacterHitFromDistance(distance - delta);
220
return
_line
.GetNextCaretCharacterHit(index);
232
return
_line
.GetPreviousCaretCharacterHit(index);
244
return
_line
.GetBackspaceCaretCharacterHit(index);
255
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
283
if(
_line
== null)
288
return
_line
.GetTextLineBreak();
304
if (!
_line
.HasOverflowed) { return 0; }
308
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
334
if (!
_line
.HasOverflowed)
344
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
370
return
_line
.WidthIncludingTrailingWhitespace;
374
return
_line
.Width;
388
return
_line
.Start + CalculateXOffsetShift();
392
return
_line
.Start;
400
internal double Height { get { return
_line
.Height; } }
405
internal double BaselineOffset { get { return
_line
.Baseline; } }
415
if (
_line
.NewlineLength == 0) { return false; }
418
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
426
internal int Length { get { return
_line
.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } }
431
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
459
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
463
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
469
textBounds =
_line
.GetTextBounds(cp, cch);
525
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
529
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);
559
if (
_line
.HasOverflowed || _showParagraphEllipsis)
574
return (
_line
.NewlineLength > 0);