StyleSet.GetFontSize(StyleSetResourceId) 方法

定义

返回具有指定 id 的字体的全身高度。 这是创建字体时指定的值。 使用此字体时,请改用 GetFontHeight 来获取文本行的高度。

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

参数

fontId
StyleSetResourceId

字体的 id。

返回

Double

创建字体时给定的字体大小。

适用于