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