2 writes to _line
PresentationFramework (2)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (2)
70
_line
= null;
194
_line
= formatter.FormatLine(this, dcp, formatWidth, lineProperties, null, textRunCache);
25 references to _line
PresentationFramework (25)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (25)
67
if (
_line
!= null)
69
_line
.Dispose();
237
_line
.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None));
275
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
297
return
_line
.GetCharacterHitFromDistance(distance - delta);
307
return
_line
.GetNextCaretCharacterHit(index);
317
return
_line
.GetPreviousCaretCharacterHit(index);
327
return
_line
.GetBackspaceCaretCharacterHit(index);
338
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
361
return
_line
.WidthIncludingTrailingWhitespace;
365
return
_line
.Width;
373
internal double Height { get { return
_line
.Height; } }
383
if (
_line
.NewlineLength == 0) { return false; }
386
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
396
get { return
_line
.Length - (EndOfParagraph ? 1 : 0); }
402
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
411
return (
_line
.NewlineLength > 0);
512
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
541
xOffset = _paragraphWidth -
_line
.Width;
545
xOffset = (_paragraphWidth -
_line
.Width) / 2;
553
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
557
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);