2 writes to _line
PresentationFramework (2)
src\Framework\MS\Internal\Text\Line.cs (2)
49
_line
= null;
97
_line
= _owner.TextFormatter.FormatLine(this, dcp, width, lineProperties, textLineBreak, textRunCache);
47 references to _line
PresentationFramework (47)
src\Framework\MS\Internal\Text\ComplexLine.cs (5)
162
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
237
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
276
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
280
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
289
charHit =
_line
.GetCharacterHitFromDistance(offset - delta);
src\Framework\MS\Internal\Text\Line.cs (42)
46
if (
_line
!= null)
48
_line
.Dispose();
119
Debug.Assert(
_line
!= null, "Rendering line that has not been measured yet.");
122
System.Windows.Media.TextFormatting.TextLine line =
_line
;
123
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
125
line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
175
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
179
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
185
textBounds =
_line
.GetTextBounds(cp, cch);
211
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
213
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
218
return
_line
.GetCharacterHitFromDistance(distance - delta);
230
return
_line
.GetNextCaretCharacterHit(index);
242
return
_line
.GetPreviousCaretCharacterHit(index);
254
return
_line
.GetBackspaceCaretCharacterHit(index);
265
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
293
if(
_line
== null)
298
return
_line
.GetTextLineBreak();
314
if (!
_line
.HasOverflowed) { return 0; }
318
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
344
if (!
_line
.HasOverflowed)
354
System.Windows.Media.TextFormatting.TextLine collapsedLine =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
380
return
_line
.WidthIncludingTrailingWhitespace;
384
return
_line
.Width;
398
return
_line
.Start + CalculateXOffsetShift();
402
return
_line
.Start;
410
internal double Height { get { return
_line
.Height; } }
415
internal double BaselineOffset { get { return
_line
.Baseline; } }
425
if (
_line
.NewlineLength == 0) { return false; }
428
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
436
internal int Length { get { return
_line
.Length - (EndOfParagraph ? _syntheticCharacterLength : 0); } }
441
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
469
if (
_line
.HasOverflowed && _owner.ParagraphProperties.TextTrimming != TextTrimming.None)
473
System.Windows.Media.TextFormatting.TextLine line =
_line
.Collapse(GetCollapsingProps(_wrappingWidth, _owner.ParagraphProperties));
479
textBounds =
_line
.GetTextBounds(cp, cch);
535
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
539
return (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);
569
if (
_line
.HasOverflowed || _showParagraphEllipsis)
584
return (
_line
.NewlineLength > 0);