WrapText
简述
按照最大行长为MaxCol自动分行。
WrapText(const Line: string; MaxCol: Integer): string;
名称 | 类型 | 说明 |
---|
MaxCol | Integer | 整型,每行最长字符 |
返回 | string |
字符串 |
ConstLine := "Separate this sentence to two lines.";
Return WrapText(ConstLine,20);
{输出:
(自动换行时考虑字词的完整性)
Separate this
sentence to two
lines.
}