StyleSet.GetFontHeight Method

Returns the line spacing of the specified font (i.e., the height of a line of text) in world units. Line spacing is the ascent + the descent + some recommended extra. The ascent is the height of the character above the baseline, and the descent is the height of the character below the baseline. The extra is below the descent.

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 GetFontHeight ( _
    fontId As StyleSetResourceId _
) As Double
public double GetFontHeight(
    StyleSetResourceId fontId
)
public:
double GetFontHeight(
    StyleSetResourceId^ fontId
)
member GetFontHeight : 
        fontId:StyleSetResourceId -> float 
public function GetFontHeight(
    fontId : StyleSetResourceId
) : double

Parameters

Return Value

Type: System.Double

.NET Framework Security

See Also

Reference

StyleSet Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace