Table of Contents

Method DistributeColumns

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

DistributeColumns(WordDocument, Table)

Gives every column the same width, their total unchanged (Word's Distribute Columns): the grid and each cell's width in twips.

public static DocumentEdit DistributeColumns(this WordDocument document, Table table)

Parameters

document WordDocument

The document that holds the table.

table Table

The table.

Returns

DocumentEdit

The edit.

Exceptions

ArgumentNullException

document or table is null.

ArgumentException

The table is not in the document.

InvalidOperationException

The table has no grid columns.