Table of Contents

Method DeleteRows

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

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

document WordDocument

The document that holds the cells.

first TableCell

A cell of one end row.

last TableCell

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