Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Control.FontHeight Property

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

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

Property Value

The height of the Font of the control in pixels.

Remarks

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.

Requirements

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft