private Row CloneRow(Row row, Table table) { Row newRow = new Row(table, row.StyleName); foreach (Cell cell in row.Cells) { newRow.Cells.Add(CloneCell(cell)); } return row; }