Method DeleteColumns
DeleteColumns(WordDocument, TableCell, TableCell)
Deletes the grid columns two cells span between them, and the table when that is all of them.
public static DocumentEdit DeleteColumns(this WordDocument document, TableCell first, TableCell last)
Parameters
documentWordDocumentThe document that holds the cells.
firstTableCellA cell at one end of the columns.
lastTableCellA cell at the other end, in the same table.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The cells are not in one table of
document.