Table of Contents

Method FormatRows

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

FormatRows(WordDocument, DocumentSpan, Action<RowFormat>)

Changes the format of the rows a span touches (header row, height, can't split) as one edit.

public static DocumentEdit FormatRows(this WordDocument document, DocumentSpan span, Action<RowFormat> change)

Parameters

document WordDocument

The document.

span DocumentSpan

The span: both ends in one table.

change Action<RowFormat>

Sets the values on a copy of each row's format.

Returns

DocumentEdit

The edit; the caret stays where the span was.

Exceptions

ArgumentNullException

An argument is null.

ArgumentException

An end is not in document, or the two ends are not in one table.