1 write to _metrics
PresentationCore (1)
MS\Internal\TextFormatting\FullTextLine.cs (1)
179
_metrics
= new TextMetrics();
92 references to _metrics
PresentationCore (92)
MS\Internal\TextFormatting\FullTextLine.cs (92)
180
_metrics
._pixelsPerDip = pixelsPerDip;
207
_metrics
._formatter = fullText.Formatter;
208
Debug.Assert(
_metrics
._formatter != null);
229
TextFormatterContext context =
_metrics
._formatter.AcquireContext(fullText, IntPtr.Zero);
332
_metrics
.Compute(
343
_textMinWidthAtTrailing = lineWidths.upMinStartTrailing -
_metrics
._textStart;
353
if (
_metrics
._textStart +
_metrics
._textWidthAtTrailing > finiteFormatWidth)
360
double realFormatWidth =
_metrics
._formatter.IdealToReal(finiteFormatWidth, PixelsPerDip);
470
_metrics
.AppendCollapsingSymbolWidth(symbolIdealWidth);
558
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip),
559
_metrics
._formatter.IdealToReal(
_metrics
._height, PixelsPerDip)
599
LSRECT rect = new LSRECT(0, 0,
_metrics
._textWidthAtTrailing,
_metrics
._height);
604
context =
_metrics
._formatter.AcquireContext(
614
LSPOINT lsRefOrigin = new LSPOINT(0,
_metrics
._baselineOffset);
681
LSLineUToParagraphU(
_metrics
._textStart +
_metrics
._textWidthAtTrailing - symbolIdealWidth),
682
_metrics
._baselineOffset,
742
_metrics
._formatter.GlyphingCache,
758
Debug.Assert(
_metrics
._height > 0);
759
line.
_metrics
._formatter =
_metrics
._formatter;
760
line.
_metrics
._height =
_metrics
._height;
761
line.
_metrics
._baselineOffset =
_metrics
._baselineOffset;
793
line.
_metrics
._cchDepend = 0; // no dependency
800
if (line.
_metrics
._cchLength < Length)
803
_cpFirst + line.
_metrics
._cchLength,
804
Length - line.
_metrics
._cchLength,
809
line.
_metrics
._cchLength = Length;
878
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
988
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
990
return
_metrics
._formatter.IdealToReal(LSLineUToParagraphU(DistanceFromCharacterHit(characterHit)), PixelsPerDip);
1008
if (characterHit.FirstCharacterIndex >= _cpFirst +
_metrics
._cchLength)
1011
return
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1020
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1148
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1241
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1407
while (lscpVisisble <
_metrics
._lscpLim)
1426
lscpVisisble = Math.Min(lscpVisisble,
_metrics
._lscpLim - 1);
1515
if(firstTextSourceCharacterIndex > _cpFirst +
_metrics
._cchLength - textLength)
1517
textLength = (_cpFirst +
_metrics
._cchLength - firstTextSourceCharacterIndex);
1636
_metrics
._height
1716
_metrics
._height
1764
new LSPOINT(u,
_metrics
._height),
1812
_metrics
._height
1840
_metrics
._height
1890
_metrics
._height
1911
_metrics
._height
2033
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset
2039
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset + lsrun.Height
2080
int cchLeft =
_metrics
._cchLength;
2134
TextFormatterContext context =
_metrics
._formatter.AcquireContext(
2200
return
_metrics
.GetTextLineBreak(IntPtr.Zero);
2213
if(
_metrics
._textWidth ==
_metrics
._textWidthAtTrailing)
2218
return
_metrics
._cchNewline;
2225
CharacterHit characterHit = CharacterHitFromDistance(
_metrics
._textWidthAtTrailing +
_metrics
._textStart);
2226
return _cpFirst +
_metrics
._cchLength - characterHit.FirstCharacterIndex - characterHit.TrailingLength;
2237
get { return
_metrics
.Length; }
2247
get { return
_metrics
.DependentLength; }
2256
get { return
_metrics
.NewlineLength; }
2265
get { return
_metrics
.Start; }
2274
get { return
_metrics
.Width; }
2283
get { return
_metrics
.WidthIncludingTrailingWhitespace; }
2292
get { return
_metrics
.Height; }
2302
get { return
_metrics
.TextHeight; }
2311
get { return
_metrics
.Baseline; }
2321
get { return
_metrics
.TextBaseline; }
2331
get { return
_metrics
.MarkerBaseline; }
2340
get { return
_metrics
.MarkerHeight; }
2515
int lscpValidQuery = (lscpQuery <
_metrics
._lscpLim ? lscpQuery :
_metrics
._lscpLim - 1);
2562
return u +
_metrics
._paragraphToText -
_metrics
._textStart;
2574
return u -
_metrics
._paragraphToText +
_metrics
._textStart;
2579
get { return
_metrics
._baselineOffset; }
2589
get { return
_metrics
._formatter.IdealToReal(_textMinWidthAtTrailing +
_metrics
._textStart, PixelsPerDip); }
2599
get { return
_metrics
._formatter; }
2643
double paragraphWidth =
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip);
2709
if (lscp >=
_metrics
._lscpLim)
2714
return _cpFirst +
_metrics
._cchLength;
2726
} while(offsetToFirstCp < 0 && ++lscp <
_metrics
._lscpLim);