GetWrappedTextHeight

文本, 页面布局

描述

根据当前字体和文本大小,获取按特定宽度换行的文本块高度。可使用 SetBreakString 函数设置换行符分隔符。默认值为 CR/LF 对。在某些系统上,LineFeed 可能为默认值

语法

Delphi

Function TPDFlib.GetWrappedTextHeight(Width: Double; Const Text: WideString): Double;

ActiveX

Function PDFlib::GetWrappedTextHeight(Width As Double, Text As String) As Double

DLL

double DLGetWrappedTextHeight(int InstanceID, double Width, const wchar_t * Text);

参数

Width要将文本换行到的块宽度
Text要换行的文本

返回值

返回文本块的高度