FontHeight Property
TOC
Collapse the table of content
Expand the table of content

Control.FontHeight Property

Gets or sets the height of the font of the control.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

protected int FontHeight { get; set; }
/** @property */
protected int get_FontHeight ()

/** @property */
protected void set_FontHeight (int value)

protected function get FontHeight () : int

protected function set FontHeight (value : int)

Not applicable.

Property Value

The height of the Font of the control in pixels.

NoteNote:

The FontHeight property should not be set to any value other than the control's Font.Height value, or -1. Setting FontHeight to -1 has the effect of clearing the cached height value, and the value is recalculated the next time the property is referenced.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2016 Microsoft