Table of Contents

Method DeleteColumns

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

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

document WordDocument

The document that holds the cells.

first TableCell

A cell at one end of the columns.

last TableCell

A 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.