Partilhar via


StyleSet.GetFontSize(StyleSetResourceId) Method

Definition

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.

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

Parameters

fontId
StyleSetResourceId

The id of the font.

Returns

The size of the font given when the font was created.

Applies to