向当前表添加新行
名称 | 类型 | 默认 | 描述性 |
OCell | spitableCell | 空号 | 单元格后加入新行如果未指定新行,则表尾添加新行 |
NCount | 数目 | 数行添加 |
|
前所未有 | 布林安 | 虚伪 | 添加新行前(假)或后(真)指定的单元格如果不指定单元格,则此参数将被忽略 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!varoCell =otable.GetCell(0,0)oCell.GetContent ().GetEplement(0)AddTexttable.AddRows(oCell2假)builder.SaveFile("docx", "AddRows.docx")!builder.CloseFile();