Partager via


StyleSet.GetFontSize Method

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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
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

Return Value

Type: System.Double

.NET Framework Security

See Also

Reference

StyleSet Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace