Method SetColumnWidth
SetColumnWidth(WordDocument, Table, int, Twips)
Sets one grid column's width (Word's Table Properties > Column > Preferred width in inches or centimetres): the grid and every cell over the column, in twips; the other columns keep theirs.
public static DocumentEdit SetColumnWidth(this WordDocument document, Table table, int column, Twips width)
Parameters
documentWordDocumentThe document that holds the table.
tableTableThe table.
columnintThe 0-based grid column.
widthTwipsThe width, 15 to 31680 twips.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
documentortableis null.- ArgumentException
The table is not in the document.
- ArgumentOutOfRangeException
The column is not one of the grid's, or the width is out of range.