IShapeSeries.Font
IShapeSeries
property Font: IChartFont;
Type Library
TeeChartx
Description
The Font property determines the font attributes used to output ShapeSeries.Text strings. No auto font sizing is performed, so you must specify the desired font size to avoid shape text going over Shape boundaries.
Example [Visual Basic]:
This code sets Shape text and font:
With TChart1
.AddSeries scShape
With .Series(0).asShape
.Style = chasDiamond
.Font.Size = 12
.Font.Bold = True
.Text.Clear
.Text.Add "Hello"
.Text.Add "World"
End With
End With