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