ITChart.MultiLineTextHeight
ITChart

function MultiLineTextHeight(Const AString: WideString; NumLines: Integer; TextFormat: ETextFormat): Integer;

Type Library
TeeChartx

Description
This function returns the largest height in pixels for a given "S" string. It also considers multi-line strings, returning in the NumLines parameter the total number of lines.