Method DeleteRows
DeleteRows(WordDocument, TableCell, TableCell)
Deletes the rows from first's to last's, and the table when that is all of them.
public static DocumentEdit DeleteRows(this WordDocument document, TableCell first, TableCell last)
Parameters
documentWordDocumentThe document that holds the cells.
firstTableCellA cell of one end row.
lastTableCellA cell of the other end row, in the same table.
Returns
- DocumentEdit
The edit; After is in the row that takes the first deleted row's place.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The cells are not in one table of
document.