GetWrappedText
文字, 頁面版面配置
描述
依目前字型與文字大小,取得文字的換行位置。可用 SetBreakString 函式設定斷行分隔符,預設是 CR/LF 成對出現;某些系統上預設可能是 LineFeed
語法
Delphi
Function TPDFlib.GetWrappedText(Width: Double; Const Delimiter, Text: WideString): WideString;
ActiveX
Function PDFlib::GetWrappedText(Width As Double, Delimiter As String, Text As String) As String
DLL
const wchar_t * DLGetWrappedText(int InstanceID, double Width, const wchar_t * Delimiter, const wchar_t * Text);
參數
| Width | 文字換行目標區塊的寬度 |
|---|---|
| Delimiter | 放在每行之間的字串 |
| Text | The text to wrap |
傳回值
| 傳回文字區塊的各行,以 Delimiter 字串分隔 |