StyleSet.GetFontHeight(StyleSetResourceId) 方法

定义

返回指定字体的行距 (即,文本行的高度) 为世界单位。 行距是上升 + 下降量 + 一些建议额外部分。 升高是基线上方的字符高度,而下降是基线下的字符的高度。 额外的降低了下降。

public:
 double GetFontHeight(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ fontId);
public double GetFontHeight (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId fontId);
member this.GetFontHeight : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId -> double
Public Function GetFontHeight (fontId As StyleSetResourceId) As Double

参数

fontId
StyleSetResourceId

字体的 id。

返回

Double

可用于对连续文本行进行间距调整的字体高度。

适用于