IChartFont.Height
IChartFont
property Height: Integer;
Type Library
TeeChartx
Description
Height should be used in place of Font Size to size Canvas text for outputting to a printer. Height represents the height of the characters plus the internal leading.
To specify the size of fonts in Points, use the Font Size property instead.
The value of Height may be obtained from the point size using the following formula:
Font.Height = Font.Size * Font.PixelsPerInch / 72
Example [Visual Basic]:
' Size Canvas text to display/print out the same size as the
' Left Axis Title.
Private Sub TChart1_OnAfterDraw()
With TChart1
.Canvas.Font.Height = .Axis.Left.Title.Font.Size * _
.Axis.Left.Title.Font.PixelsPerInch / 72
.Canvas.TextOut 100, 100, "Text same size as Left Axis Title"
End With
End Sub