Show: Delphi C++
Display Preferences

Vcl.ComCtrls.TTextAttributes.Size

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Size: Integer read GetSize write SetSize;

C++

__property int Size = {read=GetSize, write=SetSize, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTextAttributes

Description

Specifies the height of the font in points.

To specify a font height in points, use the Size property. To specify the size of the font in pixels instead, use the Height property. Users usually specify font size in points within an application, while programmers are usually 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:

Size = Height * 72 / ScreenPixelsPerInch

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

See Also

Personal tools
In Other Languages
Previous Versions
Assistance