2 writes to _line
PresentationFramework (2)
MS\Internal\Documents\TextBoxLine.cs (2)
61
_line
= null;
185
_line
= formatter.FormatLine(this, dcp, formatWidth, lineProperties, null, textRunCache);
25 references to _line
PresentationFramework (25)
MS\Internal\Documents\TextBoxLine.cs (25)
58
if (
_line
!= null)
60
_line
.Dispose();
228
_line
.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None));
266
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
288
return
_line
.GetCharacterHitFromDistance(distance - delta);
298
return
_line
.GetNextCaretCharacterHit(index);
308
return
_line
.GetPreviousCaretCharacterHit(index);
318
return
_line
.GetBackspaceCaretCharacterHit(index);
329
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
352
return
_line
.WidthIncludingTrailingWhitespace;
356
return
_line
.Width;
364
internal double Height { get { return
_line
.Height; } }
374
if (
_line
.NewlineLength == 0) { return false; }
377
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
387
get { return
_line
.Length - (EndOfParagraph ? 1 : 0); }
393
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
402
return (
_line
.NewlineLength > 0);
503
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
532
xOffset = _paragraphWidth -
_line
.Width;
536
xOffset = (_paragraphWidth -
_line
.Width) / 2;
544
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
548
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);