Skip to main content

TdxSpreadSheetCustomFont.Height Property

Specifies the font’s height.

Declaration

property Height: Integer read; write;

Property Value

Type
Integer

Remarks

Use this property to specify the height of the font in pixels. If the value is negative, the internal leading that appears at the top of each line of text is not measured. If the value is positive, the Height property represents the height of the characters plus the internal leading.

To specify the font size in points, use the Size property instead. End-users usually specify font size in points, while applications may be concerned with the actual size of the font in pixels when displaying the cell contents.

The values of the Height and Size properties are interconnected with each other via the following formula:

Font.Height = -Font.Size * Font.PixelsPerInch/72

When the Height property has a positive value, the Size property is negative. When the Size property has a positive value, the Height property has a negative value.

See Also