GetWrappedTextA

文本, 页面布局

描述

末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅提供 Unicode 形式。其行为与 GetWrappedText 相同,字符串参数使用当前 SetAnsiMode 代码页解释

根据当前字体和字号获取文本换行位置。可用 SetBreakString 函数设置断行分隔符。默认值为 CR/LF 对。在某些系统上,LineFeed 可为默认值

语法

Delphi

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

DLL

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

参数

Width要将文本换行到的块宽度
Delimiter放置在每一行之间的字符串
Text要换行的文本

返回值

返回由 Delimiter 字符串分隔的文本块行