function cxTextHeight(AFont: TFont; const S: string; AFontSize: Integer = 0): Integer;
返回文本高度(像素单位)
引用单元
uses cxGraphics;
函数原型
function cxTextHeight(AFont: TFont; const S: string; AFontSize: Integer = 0): Integer;
第一个参数:字体
第二个参数:要计算高度的字符串;
第三个参数:字体的字号
|