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

Control.FontHeight Property

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

[Visual Basic]
Protected Property FontHeight As Integer
protected int FontHeight {get; set;}
protected: __property int get_FontHeight();
protected: __property void set_FontHeight(int);
protected function get FontHeight() : int;
protected function set FontHeight(int);

Property Value

The height of the Font of the control in pixels.


Note   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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace | Font.Height

© 2015 Microsoft