向当前表添加新行
名称 | 类型 | 默认 | 描述性 |
NCount | 数目 | 数行添加 |
|
前所未有 | 布林安 | 虚伪 | 指定行在当前行前后添加 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetStyle(oTableStyle)!varoRow=otable.getRow0oRow.GetCell(0).GetContent().GetElement(0).AddText("Second row")!oTable.SetWidth("percent", 100)!ORow.AddRows(1,真)oDocument.Push(oTable)!builder.SaveFile("docx", "AddRows.docx")!builder.CloseFile();