Table of Contents

Method InsertRows

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

InsertRows(WordDocument, TableCell, int, bool)

Inserts rows above or below a cell's row, formatted like it.

public static DocumentEdit InsertRows(this WordDocument document, TableCell cell, int count, bool below)

Parameters

document WordDocument

The document that holds the cell.

cell TableCell

A cell of the row to insert beside.

count int

The number of rows, at least 1.

below bool

True to insert below the row, false above.

Returns

DocumentEdit

The edit; After is the start of the new row's cell under cell.

Exceptions

ArgumentNullException

document or cell is null.

ArgumentException

The cell is not in a table of document.

ArgumentOutOfRangeException

count is less than 1.