GetWrappedTextBreakStringA

文字

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetWrappedTextBreakString 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

類似 GetWrappedText 函式,但保留文字中原有的斷行字串。要把文字切分到頁面上不同區域時很好用

語法

Delphi

Function DLGetWrappedTextBreakStringA(InstanceID: Integer; Width: Double; Delimiter, Text: PAnsiChar): PAnsiChar;

DLL

const char* DLGetWrappedTextBreakStringA(int InstanceID, double Width, const char* Delimiter, const char* Text);

參數

Width文字換行目標寬度
Delimiter換行之間使用的分隔符
Text要換行的文字