LogFont.Height Field

Specifies the height of the character cell or character of a font.

Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)

Syntax

'Declaration
Public Height As Integer
'Usage
Dim instance As LogFont
Dim value As Integer

value = instance.Height

instance.Height = value
public int Height
public:
int Height
public int Height
public var Height : int

Remarks

The character height value, also known as the em height, is the character cell height value minus the internal-leading value. The font mapper interprets Height as described in the following table.

Value

Description

>0

The font mapper transforms the value into device units and matches it against the cell height of the available fonts.

0

The font mapper uses a default height value when it searches for a match.

<0

The font mapper transforms the value into device units and matches its absolute value against the character height of the available fonts.

For all height comparisons, the font mapper looks for the largest font that does not exceed the requested size.

This mapping occurs when the font is used for the first time.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

LogFont Class
LogFont Members
Microsoft.WindowsCE.Forms Namespace