StyleSet.GetFontSize(StyleSetResourceId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.