天软金融分析.NET函数大全
>
文档处理函数
>
Office访问相关函数
>
Office操作相关的类
>
TOfficeObj
>
TrichText
>
方法
AddText
复制链接
简述
设置文本。
定义
AddText(S:string):class
参数
名称
类型
说明
S
string
字符串,设置文本
返回
class
类,可用于后续文本的字体样式(TFont)的设置
范例
rich1:=TOfficeObj('TRichtext');//新建富文本类
text1 := rich1.AddText('Hello');//添加文本
//设置字体样式
text1.Font.Size:=26;
text1.Font.Color := "FFF000";
相关
AddText