Table of Contents

Method DeleteTable

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

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

document WordDocument

The document that holds the table.

table Table

The table.

Returns

DocumentEdit

The edit; After is the start of the paragraph that takes its place.

Exceptions

ArgumentNullException

document or table is null.

ArgumentException

The table is not in document.

InvalidOperationException

The table is not in a block container.