2 writes to _line
PresentationFramework (2)
MS\Internal\Documents\TextBoxLine.cs (2)
60
_line
= null;
181
_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();
224
_line
.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None));
262
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
284
return
_line
.GetCharacterHitFromDistance(distance - delta);
294
return
_line
.GetNextCaretCharacterHit(index);
304
return
_line
.GetPreviousCaretCharacterHit(index);
314
return
_line
.GetBackspaceCaretCharacterHit(index);
325
return
_line
.IsAtCaretCharacterHit(charHit, _dcp);
348
return
_line
.WidthIncludingTrailingWhitespace;
352
return
_line
.Width;
360
internal double Height { get { return
_line
.Height; } }
370
if (
_line
.NewlineLength == 0) { return false; }
373
IList<TextSpan<TextRun>> runs =
_line
.GetTextRunSpans();
383
get { return
_line
.Length - (EndOfParagraph ? 1 : 0); }
389
internal int ContentLength { get { return
_line
.Length -
_line
.NewlineLength; } }
398
return (
_line
.NewlineLength > 0);
499
IList<TextBounds> textBounds =
_line
.GetTextBounds(cp, cch);
528
xOffset = _paragraphWidth -
_line
.Width;
532
xOffset = (_paragraphWidth -
_line
.Width) / 2;
540
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace) / 2;
544
xOffset += (
_line
.Width -
_line
.WidthIncludingTrailingWhitespace);