SetCellBorderTop

SetCellFrontTop(sType,nSize,nSpace,r,g,b)

设置边框显示在当前表单元格顶部

参数:

名称 类型 描述性
sType系统 边框类型

单元格顶端边框样式

nSize Pt_8

当前单元格顶端宽度以点 八分测量

空间 平方公尺

间距偏移表单元格顶部点测法

R 字节

红色组件值

g级 字节

绿色分量值

b/ 字节

蓝色组件值

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0od.adText(“我们创建3x3表并在所有单元格中添加顶点4黑边框 :”)var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!var tableCellPr =otableStyle.GettableCellPrtableCellPr.SetCluserTopoTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetCellBorderTop.docx")!builder.CloseFile();

结果文档