NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FontFamily.GetEmHeight

Gets the size of the Em square for the specified style in font design units.

[Visual Basic]
Public Function GetEmHeight( _
   ByVal style As FontStyle _
) As Integer
[C#]
public int GetEmHeight(
   FontStyle style
);
[C++]
public: int GetEmHeight(
   FontStyle style
);
[JScript]
public function GetEmHeight(
   style : FontStyle
) : int;

Parameters

style
The FontStyle for which to get the Em height.

Return Value

The height of the Em square.

Remarks

The Em square is the basic metric by which fonts are sized, it is an imaginary square that is used to size and align glyphs. The dimensions of the em square typically are those of the full body height of a font plus some extra spacing to prevent lines of text from colliding when typeset without extra leading (spacing between lines).

See Also

FontFamily Class | FontFamily Members | System.Drawing Namespace