SetBackgroundColor

SetBackroundColor(r,g,b,bnone)

设置当前表列中所有单元格的背景色

参数:

名称 类型 描述性
R 字节

红色组件值

g级 字节

绿色分量值

b/ 字节

蓝色组件值

内核 布林安

定义背景色不设置

返回时间 :

类型
布林安

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(4,2)oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!var表Row=otable.getRowtableRow.SetBackCloor(255,111,61,假)oDocument.Push(oTable)!builder.SaveFile("docx", "SetBackgroundColor.docx")!builder.CloseFile();

结果文档