Method FormatRows
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
documentWordDocumentThe document.
spanDocumentSpanThe span: both ends in one table.
changeAction<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.