Returns the em height of the font with the specified id. This is the value specified when the font was created. Use GetFontHeight instead to get the height of a line of text when using this font.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Function GetFontSize ( _
fontId As StyleSetResourceId _
) As Double
public double GetFontSize(
StyleSetResourceId fontId
)
public:
double GetFontSize(
StyleSetResourceId^ fontId
)
member GetFontSize :
fontId:StyleSetResourceId -> float
public function GetFontSize(
fontId : StyleSetResourceId
) : double
Parameters
- fontId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
The id of the font.
Return Value
Type: System.Double
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.