1 write to _metrics
PresentationCore (1)
MS\Internal\TextFormatting\FullTextLine.cs (1)
164
_metrics
= new TextMetrics();
92 references to _metrics
PresentationCore (92)
MS\Internal\TextFormatting\FullTextLine.cs (92)
165
_metrics
._pixelsPerDip = pixelsPerDip;
192
_metrics
._formatter = fullText.Formatter;
193
Debug.Assert(
_metrics
._formatter != null);
214
TextFormatterContext context =
_metrics
._formatter.AcquireContext(fullText, IntPtr.Zero);
317
_metrics
.Compute(
328
_textMinWidthAtTrailing = lineWidths.upMinStartTrailing -
_metrics
._textStart;
338
if (
_metrics
._textStart +
_metrics
._textWidthAtTrailing > finiteFormatWidth)
345
double realFormatWidth =
_metrics
._formatter.IdealToReal(finiteFormatWidth, PixelsPerDip);
455
_metrics
.AppendCollapsingSymbolWidth(symbolIdealWidth);
543
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip),
544
_metrics
._formatter.IdealToReal(
_metrics
._height, PixelsPerDip)
584
LSRECT rect = new LSRECT(0, 0,
_metrics
._textWidthAtTrailing,
_metrics
._height);
589
context =
_metrics
._formatter.AcquireContext(
599
LSPOINT lsRefOrigin = new LSPOINT(0,
_metrics
._baselineOffset);
666
LSLineUToParagraphU(
_metrics
._textStart +
_metrics
._textWidthAtTrailing - symbolIdealWidth),
667
_metrics
._baselineOffset,
727
_metrics
._formatter.GlyphingCache,
743
Debug.Assert(
_metrics
._height > 0);
744
line.
_metrics
._formatter =
_metrics
._formatter;
745
line.
_metrics
._height =
_metrics
._height;
746
line.
_metrics
._baselineOffset =
_metrics
._baselineOffset;
778
line.
_metrics
._cchDepend = 0; // no dependency
785
if (line.
_metrics
._cchLength < Length)
788
_cpFirst + line.
_metrics
._cchLength,
789
Length - line.
_metrics
._cchLength,
794
line.
_metrics
._cchLength = Length;
863
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
973
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
975
return
_metrics
._formatter.IdealToReal(LSLineUToParagraphU(DistanceFromCharacterHit(characterHit)), PixelsPerDip);
993
if (characterHit.FirstCharacterIndex >= _cpFirst +
_metrics
._cchLength)
996
return
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1005
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1133
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1226
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1392
while (lscpVisisble <
_metrics
._lscpLim)
1411
lscpVisisble = Math.Min(lscpVisisble,
_metrics
._lscpLim - 1);
1500
if(firstTextSourceCharacterIndex > _cpFirst +
_metrics
._cchLength - textLength)
1502
textLength = (_cpFirst +
_metrics
._cchLength - firstTextSourceCharacterIndex);
1621
_metrics
._height
1701
_metrics
._height
1749
new LSPOINT(u,
_metrics
._height),
1797
_metrics
._height
1825
_metrics
._height
1875
_metrics
._height
1896
_metrics
._height
2018
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset
2024
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset + lsrun.Height
2065
int cchLeft =
_metrics
._cchLength;
2119
TextFormatterContext context =
_metrics
._formatter.AcquireContext(
2185
return
_metrics
.GetTextLineBreak(IntPtr.Zero);
2198
if(
_metrics
._textWidth ==
_metrics
._textWidthAtTrailing)
2203
return
_metrics
._cchNewline;
2210
CharacterHit characterHit = CharacterHitFromDistance(
_metrics
._textWidthAtTrailing +
_metrics
._textStart);
2211
return _cpFirst +
_metrics
._cchLength - characterHit.FirstCharacterIndex - characterHit.TrailingLength;
2222
get { return
_metrics
.Length; }
2232
get { return
_metrics
.DependentLength; }
2241
get { return
_metrics
.NewlineLength; }
2250
get { return
_metrics
.Start; }
2259
get { return
_metrics
.Width; }
2268
get { return
_metrics
.WidthIncludingTrailingWhitespace; }
2277
get { return
_metrics
.Height; }
2287
get { return
_metrics
.TextHeight; }
2296
get { return
_metrics
.Baseline; }
2306
get { return
_metrics
.TextBaseline; }
2316
get { return
_metrics
.MarkerBaseline; }
2325
get { return
_metrics
.MarkerHeight; }
2500
int lscpValidQuery = (lscpQuery <
_metrics
._lscpLim ? lscpQuery :
_metrics
._lscpLim - 1);
2547
return u +
_metrics
._paragraphToText -
_metrics
._textStart;
2559
return u -
_metrics
._paragraphToText +
_metrics
._textStart;
2564
get { return
_metrics
._baselineOffset; }
2574
get { return
_metrics
._formatter.IdealToReal(_textMinWidthAtTrailing +
_metrics
._textStart, PixelsPerDip); }
2584
get { return
_metrics
._formatter; }
2628
double paragraphWidth =
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip);
2694
if (lscp >=
_metrics
._lscpLim)
2699
return _cpFirst +
_metrics
._cchLength;
2711
} while(offsetToFirstCp < 0 && ++lscp <
_metrics
._lscpLim);