添加Rows

adRows/nCount,sspi表......

向当前表添加新行

参数:

名称 类型 默认 描述性
NCount 数目

数行添加

前所未有 布林安 虚伪

指定行在当前行前后添加

返回时间 :

类型
spi表空区

实例

拷贝代码
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();

结果文档