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)

Syntax

'Declaration
Sub SetWidth ( _
    ColumnWidth As Single, _
    RulerStyle As WdRulerStyle _
)
'Usage
Dim instance As Columns
Dim ColumnWidth As Single
Dim RulerStyle As WdRulerStyle

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

Parameters

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

Remarks

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

Reference

Columns Interface

Columns Members

Microsoft.Office.Interop.Word Namespace