天软金融分析.NET函数大全 > TSL函数 > 基础函数 > 字符串 > 替换以及处理函数

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.
    }
相关