From RAD Studio API Documentation
Jump to: navigation, search


property Height: Integer read GetHeight write SetHeight;


__property int Height = {read=GetHeight, write=SetHeight, nodefault};


Type Visibility Source Unit Parent
property public
Vcl.ComCtrls TTextAttributes


Specifies the height of the font in pixels.

To specify a font height in pixels, use the Height property. To specify the size of the font in points instead, use the Size property. Users usually specify font size in points within an application, while programmers are often concerned with the actual size of the font in pixels when displaying a font on the screen.

The relationship between the Height and Size properties is expressed by the formula:

Height = Size * ScreenPixelsPerInch / 72

Note: Unlike the Height property of a TFont object, the Height property of a TTextAttributes object always includes the internal leading that appears at the top of the font.

See Also

Code Examples