Columns.SetWidth Method

Sets the width of columns in a table.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)


Sub SetWidth ( _
    ColumnWidth As Single, _
    RulerStyle As WdRulerStyle _
Dim instance As Columns
Dim ColumnWidth As Single
Dim RulerStyle As WdRulerStyle

instance.SetWidth(ColumnWidth, RulerStyle)
void SetWidth(
    float ColumnWidth,
    WdRulerStyle RulerStyle


  • ColumnWidth
    Type: System.Single
    The width of the specified columns in points.


The WdRulerStyle behavior applies to left-aligned tables. The WdRulerStyle behavior for center- and right-aligned tables can be unexpected; in these cases, the SetWidth method should be used with care.

See Also


Columns Interface

Columns Members

Microsoft.Office.Interop.Word Namespace