1 write to _metrics
PresentationCore (1)
MS\Internal\TextFormatting\FullTextLine.cs (1)
164
_metrics
= new TextMetrics
91 references to _metrics
PresentationCore (91)
MS\Internal\TextFormatting\FullTextLine.cs (91)
194
_metrics
._formatter = fullText.Formatter;
195
Debug.Assert(
_metrics
._formatter != null);
216
TextFormatterContext context =
_metrics
._formatter.AcquireContext(fullText, IntPtr.Zero);
319
_metrics
.Compute(
330
_textMinWidthAtTrailing = lineWidths.upMinStartTrailing -
_metrics
._textStart;
340
if (
_metrics
._textStart +
_metrics
._textWidthAtTrailing > finiteFormatWidth)
347
double realFormatWidth =
_metrics
._formatter.IdealToReal(finiteFormatWidth, PixelsPerDip);
457
_metrics
.AppendCollapsingSymbolWidth(symbolIdealWidth);
545
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip),
546
_metrics
._formatter.IdealToReal(
_metrics
._height, PixelsPerDip)
586
LSRECT rect = new LSRECT(0, 0,
_metrics
._textWidthAtTrailing,
_metrics
._height);
591
context =
_metrics
._formatter.AcquireContext(
601
LSPOINT lsRefOrigin = new LSPOINT(0,
_metrics
._baselineOffset);
668
LSLineUToParagraphU(
_metrics
._textStart +
_metrics
._textWidthAtTrailing - symbolIdealWidth),
669
_metrics
._baselineOffset,
729
_metrics
._formatter.GlyphingCache,
745
Debug.Assert(
_metrics
._height > 0);
746
line.
_metrics
._formatter =
_metrics
._formatter;
747
line.
_metrics
._height =
_metrics
._height;
748
line.
_metrics
._baselineOffset =
_metrics
._baselineOffset;
780
line.
_metrics
._cchDepend = 0; // no dependency
787
if (line.
_metrics
._cchLength < Length)
790
_cpFirst + line.
_metrics
._cchLength,
791
Length - line.
_metrics
._cchLength,
796
line.
_metrics
._cchLength = Length;
865
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
975
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
977
return
_metrics
._formatter.IdealToReal(LSLineUToParagraphU(DistanceFromCharacterHit(characterHit)), PixelsPerDip);
995
if (characterHit.FirstCharacterIndex >= _cpFirst +
_metrics
._cchLength)
998
return
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1007
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1135
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1228
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1394
while (lscpVisisble <
_metrics
._lscpLim)
1413
lscpVisisble = Math.Min(lscpVisisble,
_metrics
._lscpLim - 1);
1502
if(firstTextSourceCharacterIndex > _cpFirst +
_metrics
._cchLength - textLength)
1504
textLength = (_cpFirst +
_metrics
._cchLength - firstTextSourceCharacterIndex);
1623
_metrics
._height
1703
_metrics
._height
1751
new LSPOINT(u,
_metrics
._height),
1799
_metrics
._height
1827
_metrics
._height
1877
_metrics
._height
1898
_metrics
._height
2020
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset
2026
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset + lsrun.Height
2067
int cchLeft =
_metrics
._cchLength;
2121
TextFormatterContext context =
_metrics
._formatter.AcquireContext(
2187
return
_metrics
.GetTextLineBreak(IntPtr.Zero);
2200
if(
_metrics
._textWidth ==
_metrics
._textWidthAtTrailing)
2205
return
_metrics
._cchNewline;
2212
CharacterHit characterHit = CharacterHitFromDistance(
_metrics
._textWidthAtTrailing +
_metrics
._textStart);
2213
return _cpFirst +
_metrics
._cchLength - characterHit.FirstCharacterIndex - characterHit.TrailingLength;
2224
get { return
_metrics
.Length; }
2234
get { return
_metrics
.DependentLength; }
2243
get { return
_metrics
.NewlineLength; }
2252
get { return
_metrics
.Start; }
2261
get { return
_metrics
.Width; }
2270
get { return
_metrics
.WidthIncludingTrailingWhitespace; }
2279
get { return
_metrics
.Height; }
2289
get { return
_metrics
.TextHeight; }
2298
get { return
_metrics
.Baseline; }
2308
get { return
_metrics
.TextBaseline; }
2318
get { return
_metrics
.MarkerBaseline; }
2327
get { return
_metrics
.MarkerHeight; }
2502
int lscpValidQuery = (lscpQuery <
_metrics
._lscpLim ? lscpQuery :
_metrics
._lscpLim - 1);
2549
return u +
_metrics
._paragraphToText -
_metrics
._textStart;
2561
return u -
_metrics
._paragraphToText +
_metrics
._textStart;
2566
get { return
_metrics
._baselineOffset; }
2576
get { return
_metrics
._formatter.IdealToReal(_textMinWidthAtTrailing +
_metrics
._textStart, PixelsPerDip); }
2586
get { return
_metrics
._formatter; }
2630
double paragraphWidth =
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip);
2696
if (lscp >=
_metrics
._lscpLim)
2701
return _cpFirst +
_metrics
._cchLength;
2713
} while(offsetToFirstCp < 0 && ++lscp <
_metrics
._lscpLim);