GetWrappedTextLineCountA
文本, 页面布局
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅提供 Unicode 形式;其行为与 GetWrappedTextLineCount 相同,字符串参数按当前 SetAnsiMode 代码页解释
根据当前字体和文本大小,确定一段换行到指定宽度的文本将占用的行数。可使用 SetBreakString 函数设置换行分隔符。默认值为 CR / LF 对。在某些系统上,LineFeed 可能为默认值
语法
Delphi
Function DLGetWrappedTextLineCountA(InstanceID: Integer; Width: Double; Text: PAnsiChar): Integer;
DLL
int DLGetWrappedTextLineCountA(int InstanceID, double Width, const char * Text);
参数
| Width | 要将文本换行到的块宽度 |
|---|---|
| Text | 要换行的文本 |
返回值
| 行数 |