向当前表添加新列
名称 | 类型 | 默认 | 描述性 |
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();