Partilhar via


StyleSet.GetFontHeight(StyleSetResourceId) Method

Definition

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.

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

Parameters

fontId
StyleSetResourceId

The id of the font.

Returns

The font height which can be used for spacing successive lines of text.

Applies to