合并数组合并成功后返回合并单元格,否则结果为null
名称 | 类型 | 描述性 |
aells | 数组
|
数组合并 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表55oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!var oCell = oTable.MergeCells([oTable.GetRow(1).GetCell(1), oTable.GetRow(1).GetCell(2), oTable.GetRow(2).GetCell(1), oTable.GetRow(2).GetCell(2)])!oCell.GetContent().GetElement(0).AddText("Merged cell")!oDocument.Push(oTable)!builder.SaveFile("docx", "MergeCells.docx")!builder.CloseFile();