设置边框显示在当前表单元格顶部
名称 | 类型 | 描述性 |
sType系统 | 边框类型 | 单元格顶端边框样式 |
nSize | Pt_8 | 当前单元格顶端宽度以点 八分测量 |
空间 | 平方公尺 | 间距偏移表单元格顶部点测法 |
R | 字节 | 红色组件值 |
g级 | 字节 | 绿色分量值 |
b/ | 字节 | 蓝色组件值 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oddText(“我们创建3x3表并增加4点黑边框var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!varocell =otable.GetRow0.GetCell0OCell.SetCellFrontTop(single3205151oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetCellBorderTop.docx")!builder.CloseFile();