删除Column

删除Column(oCell)+++

删除表列和指定单元格

参数:

名称 类型 描述性
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();

结果文档