Method DistributeColumns
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
documentWordDocumentThe document that holds the table.
tableTableThe table.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
documentortableis null.- ArgumentException
The table is not in the document.
- InvalidOperationException
The table has no grid columns.