Method DeleteTable
DeleteTable(WordDocument, Table)
Deletes a table; a container left with no block gets an empty paragraph.
public static DocumentEdit DeleteTable(this WordDocument document, Table table)
Parameters
documentWordDocumentThe document that holds the table.
tableTableThe table.
Returns
- DocumentEdit
The edit; After is the start of the paragraph that takes its place.
Exceptions
- ArgumentNullException
documentortableis null.- ArgumentException
The table is not in
document.- InvalidOperationException
The table is not in a block container.