获取RowsCount

GetRowsCount

返回当前表数行

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement02x2表并加新行var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表2oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!varn表列数=otable.getRowsCountoTable.AddRow(oTable.GetRow(1).GetCell(0), true)!varn表列数组1=otable.getRowsCountoDocument.Push(oTable)!odeptes = Api.Createlementsod.adText(上表+ntableRows数+)odision.adText ('现在表+ntableRows序号1+行oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetRowsCount.docx")!builder.CloseFile();

结果文档