指定在表内单元格内上层和表边框间留空
名称 | 类型 | 描述性 |
svalue语言 | 树枝 | 数值乘以上限单元格上方 20s点测量if this值 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!varocell =otable.GetRow0.GetCell0oCell.SetCellMarginTop(720)!oCell.GetContent ().GetEplement(0)AddText ("这只是样本文本显示顶部单元比值36分")oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetCellMarginTop.docx")!builder.CloseFile();