2 writes to _line
PresentationFramework (2)
MS\Internal\Documents\TextBoxLine.cs (2)
60
_line
= null;
184
_line
= formatter.FormatLine(this, dcp, formatWidth, lineProperties, null, textRunCache);
25 references to _line
PresentationFramework (25)
MS\Internal\Documents\TextBoxLine.cs (25)
57
if (
_line
!= null)
59
_line
.Dispose();
227
_line
.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None));
265
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
287
return
_line
.GetCharacterHitFromDistance(distance - delta);
297
return
_line
.GetNextCaretCharacterHit(index);
307
return
_line
.GetPreviousCaretCharacterHit(index);
317
return
_line
.GetBackspaceCaretCharacterHit(index);
328
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
351
return
_line
.WidthIncludingTrailingWhitespace;
355
return
_line
.Width;
363
internal double Height { get { return
_line
.Height; } }
373
if (
_line
.NewlineLength == 0) { return false; }
376
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
386
get { return
_line
.Length - (EndOfParagraph ? 1 : 0); }
392
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
401
return (
_line
.NewlineLength > 0);
502
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
531
xOffset = _paragraphWidth -
_line
.Width;
535
xOffset = (_paragraphWidth -
_line
.Width) / 2;
543
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
547
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);