GetWrappedTextBreakString
文字
描述
類似 GetWrappedText 函式,但保留文字中原有的斷行字串。要把文字切分到頁面上不同區域時很好用
語法
Delphi
Function TPDFlib.GetWrappedTextBreakString(Width: Double; Const Delimiter, Text: WideString): WideString;
ActiveX
Function PDFlib::GetWrappedTextBreakString(Width As Double, Delimiter As String, Text As String) As String
DLL
const wchar_t* DLGetWrappedTextBreakString(int InstanceID, double Width, const wchar_t* Delimiter, const wchar_t* Text);
const char* DLGetWrappedTextBreakStringA(int InstanceID, double Width, const char* Delimiter, const char* Text);
參數
| Width | 文字換行目標寬度 |
|---|---|
| Delimiter | 換行之間使用的分隔符 |
| Text | 要換行的文字 |
傳回值
傳回依指定寬度換行的文字,換行部分之間插入 Delimiter,並保留 Text 中原有的換行字串。Width 小到無法容納任何文字或所選字型因缺少字形而中止時傳回空字串。