1 write to _metrics
PresentationCore (1)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (1)
194
_metrics
= new TextMetrics();
92 references to _metrics
PresentationCore (92)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (92)
195
_metrics
._pixelsPerDip = pixelsPerDip;
230
_metrics
._formatter = fullText.Formatter;
231
Debug.Assert(
_metrics
._formatter != null);
252
TextFormatterContext context =
_metrics
._formatter.AcquireContext(fullText, IntPtr.Zero);
355
_metrics
.Compute(
366
_textMinWidthAtTrailing = lineWidths.upMinStartTrailing -
_metrics
._textStart;
376
if (
_metrics
._textStart +
_metrics
._textWidthAtTrailing > finiteFormatWidth)
383
double realFormatWidth =
_metrics
._formatter.IdealToReal(finiteFormatWidth, PixelsPerDip);
493
_metrics
.AppendCollapsingSymbolWidth(symbolIdealWidth);
585
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip),
586
_metrics
._formatter.IdealToReal(
_metrics
._height, PixelsPerDip)
632
LSRECT rect = new LSRECT(0, 0,
_metrics
._textWidthAtTrailing,
_metrics
._height);
637
context =
_metrics
._formatter.AcquireContext(
647
LSPOINT lsRefOrigin = new LSPOINT(0,
_metrics
._baselineOffset);
714
LSLineUToParagraphU(
_metrics
._textStart +
_metrics
._textWidthAtTrailing - symbolIdealWidth),
715
_metrics
._baselineOffset,
775
_metrics
._formatter.GlyphingCache,
791
Debug.Assert(
_metrics
._height > 0);
792
line.
_metrics
._formatter =
_metrics
._formatter;
793
line.
_metrics
._height =
_metrics
._height;
794
line.
_metrics
._baselineOffset =
_metrics
._baselineOffset;
826
line.
_metrics
._cchDepend = 0; // no dependency
833
if (line.
_metrics
._cchLength < Length)
836
_cpFirst + line.
_metrics
._cchLength,
837
Length - line.
_metrics
._cchLength,
842
line.
_metrics
._cchLength = Length;
911
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1021
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1023
return
_metrics
._formatter.IdealToReal(LSLineUToParagraphU(DistanceFromCharacterHit(characterHit)), PixelsPerDip);
1041
if (characterHit.FirstCharacterIndex >= _cpFirst +
_metrics
._cchLength)
1044
return
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1053
int lineEndDistance =
_metrics
._textStart +
_metrics
._textWidthAtTrailing;
1181
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1274
TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst,
_metrics
._cchLength);
1440
while (lscpVisisble <
_metrics
._lscpLim)
1459
lscpVisisble = Math.Min(lscpVisisble,
_metrics
._lscpLim - 1);
1551
if(firstTextSourceCharacterIndex > _cpFirst +
_metrics
._cchLength - textLength)
1553
textLength = (_cpFirst +
_metrics
._cchLength - firstTextSourceCharacterIndex);
1672
_metrics
._height
1752
_metrics
._height
1800
new LSPOINT(u,
_metrics
._height),
1848
_metrics
._height
1876
_metrics
._height
1926
_metrics
._height
1947
_metrics
._height
2069
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset
2075
_metrics
._baselineOffset - lsrun.BaselineOffset + lsrun.BaselineMoveOffset + lsrun.Height
2116
int cchLeft =
_metrics
._cchLength;
2176
TextFormatterContext context =
_metrics
._formatter.AcquireContext(
2248
return
_metrics
.GetTextLineBreak(IntPtr.Zero);
2261
if(
_metrics
._textWidth ==
_metrics
._textWidthAtTrailing)
2266
return
_metrics
._cchNewline;
2273
CharacterHit characterHit = CharacterHitFromDistance(
_metrics
._textWidthAtTrailing +
_metrics
._textStart);
2274
return _cpFirst +
_metrics
._cchLength - characterHit.FirstCharacterIndex - characterHit.TrailingLength;
2285
get { return
_metrics
.Length; }
2295
get { return
_metrics
.DependentLength; }
2304
get { return
_metrics
.NewlineLength; }
2313
get { return
_metrics
.Start; }
2322
get { return
_metrics
.Width; }
2331
get { return
_metrics
.WidthIncludingTrailingWhitespace; }
2340
get { return
_metrics
.Height; }
2350
get { return
_metrics
.TextHeight; }
2359
get { return
_metrics
.Baseline; }
2369
get { return
_metrics
.TextBaseline; }
2379
get { return
_metrics
.MarkerBaseline; }
2388
get { return
_metrics
.MarkerHeight; }
2575
int lscpValidQuery = (lscpQuery <
_metrics
._lscpLim ? lscpQuery :
_metrics
._lscpLim - 1);
2623
return u +
_metrics
._paragraphToText -
_metrics
._textStart;
2635
return u -
_metrics
._paragraphToText +
_metrics
._textStart;
2640
get { return
_metrics
._baselineOffset; }
2650
get { return
_metrics
._formatter.IdealToReal(_textMinWidthAtTrailing +
_metrics
._textStart, PixelsPerDip); }
2660
get { return
_metrics
._formatter; }
2704
double paragraphWidth =
_metrics
._formatter.IdealToReal(_paragraphWidth, PixelsPerDip);
2770
if (lscp >=
_metrics
._lscpLim)
2775
return _cpFirst +
_metrics
._cchLength;
2788
} while(offsetToFirstCp < 0 && ++lscp <
_metrics
._lscpLim);