集色器

secColor(r,g,b,s阿比兰......

设置文本颜色当前RGB格式文本范围

参数:

名称 类型 默认 描述性
R 字节

红色组件值

g级 字节

绿色分量值

b/ 字节

蓝色组件值

IsAUT 布林安 虚伪

如果此参数设置为“ true”,rgb参数将被忽略

返回时间 :

类型
阿比兰空区

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oParagraph.AddText("ONLYOFFICE Document Builder")!Var ORange=ODocument.GetRange(0,24)ORange.SetColor(255,111,61)builder.SaveFile("docx", "SetColor.docx")!builder.CloseFile();

结果文档