Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetCustomFont.Height Property

Specifies the font’s height.

#Declaration

Delphi
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