Cells.SetWidth Method
Sets the width of cells 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 Cells
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 column, in points.
- RulerStyle
Type: Microsoft.Office.Interop.Word.WdRulerStyle
Controls the way Microsoft Word adjusts cell widths.
Remarks
The WdRulerStyle behavior described above 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.