GetWrappedTextLineCount
文本, 页面布局
描述
根据当前字体和文本大小,确定一段换行到指定宽度的文本将占用的行数。可使用 SetBreakString 函数设置换行分隔符。默认值为 CR / LF 对。在某些系统上,LineFeed 可能为默认值
语法
Delphi
Function TPDFlib.GetWrappedTextLineCount(Width: Double; Const Text: WideString): Integer;
ActiveX
Function PDFlib::GetWrappedTextLineCount(Width As Double, Text As String) As Long
DLL
int DLGetWrappedTextLineCount(int InstanceID, double Width, const wchar_t * Text);
参数
| Width | 要将文本换行到的块宽度 |
|---|---|
| Text | 要换行的文本 |
返回值
| 行数 |