Setshd

Setshd(sType,r,g,b,sauto)

指定灰色应用表单元格内容

参数:

名称 类型 默认 描述性
sType系统 shdType系统

灰色类型应用到当前表单元格内容

R 字节

红色组件值

g级 字节

绿色分量值

b/ 字节

蓝色组件值

IsAUT 布林安 虚伪

真实值禁止表单内容遮蔽

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oddText ("我们创建3x3表并在所有单元格中添加橙色灰色var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!var tableCellPr =otableStyle.GettableCellPrtableCellPr.SetshdoTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetShd.docx")!builder.CloseFile();

结果文档