添加Column

adcolumn

向当前表添加新列

参数:

名称 类型 默认 描述性
OCell spitableCell 空号

单元格后添加新列如果未指定,表端将添加新列

前所未有 布林安 虚伪

添加新列前(假)或后(真)指定的单元格如果不指定单元格,则此参数将被忽略

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement02x2表并添加新列以3x2var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表2oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!oTable.AddColumn(oTable.GetRow(0).GetCell(1), true)!oDocument.Push(oTable)!builder.SaveFile("docx", "AddColumn.docx")!builder.CloseFile();

结果文档