Table of Contents

Method SplitCell

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

SplitCell(WordDocument, TableCell)

Splits a merged cell back into one cell per grid column and row; the content stays in the first.

public static DocumentEdit SplitCell(this WordDocument document, TableCell cell)

Parameters

document WordDocument

The document that holds the cell.

cell TableCell

Any cell of the merge.

Returns

DocumentEdit

The edit; empty when the cell is not merged.

Exceptions

ArgumentNullException

document or cell is null.

ArgumentException

The cell is not in a table of document.