它表明Word中定義的表格行對象,這個對象只能經過Table類對象的openRow(rowIndex)方法獲取,方法中的參數表明行的索引,從「1」開始,即spa
Row row = table.openRow(rowIndex);// Java開發,table爲Table類對象。
index:返回行的索引值code
Java代碼:對象
Row row = table.openRow(1); int rowIndex = row.getIndex();
ASP.NET代碼:索引
Row row = table.OpenRow(1); int rowIndex = row.Index;
SetHeight (RowWidth, WdRowHeightRule):設置表格某一行的高度開發
Java代碼:get
row.setHeight(50f);
ASP.NET代碼:table
row.SetHeight(25f, WdRowHeightRule.wdRowHeightAuto);