Method InsertRows
InsertRows(WordDocument, TableCell, int, bool)
Inserts rows above or below a cell's row, formatted like it.
public static DocumentEdit InsertRows(this WordDocument document, TableCell cell, int count, bool below)
Parameters
documentWordDocumentThe document that holds the cell.
cellTableCellA cell of the row to insert beside.
countintThe number of rows, at least 1.
belowboolTrue to insert below the row, false above.
Returns
- DocumentEdit
The edit; After is the start of the new row's cell under
cell.
Exceptions
- ArgumentNullException
documentorcellis null.- ArgumentException
The cell is not in a table of
document.- ArgumentOutOfRangeException
countis less than 1.