删除表列和指定单元格
名称 | 类型 | 描述性 |
OCell | spitableCell | 单元格放列后删除 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0od.adText ("我们创建3x3表并删除一列var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!varoCell =oTable.getRow(2).getCelloTable.RemoveColumn(oCell)!oDocument.Push(oTable)!builder.SaveFile("docx", "RemoveColumn.docx")!builder.CloseFile();