Share via


FontDescriptor.FontSize Property

Gets the em height of the Font object measured in the units of the Font object. This is the value used to create the font. Use FontHeight instead if you want to get the height of a line of text using this font (i.e., the line spacing).

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public ReadOnly Property FontSize As Single
public float FontSize { get; }
public:
property float FontSize {
    float get ();
}
member FontSize : float32 with get
function get FontSize () : float

Property Value

Type: Single

.NET Framework Security

See Also

Reference

FontDescriptor Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace