Compartir a través de


Column.SetWidth Method (Word)

Sets the width of a column in a table.

Syntax

expression .SetWidth(ColumnWidth, RulerStyle)

expression Required. A variable that represents a Column object.

Parameters

Name

Required/Optional

Data Type

Description

ColumnWidth

Required

Single

The width of the specified column or columns, in points.

RulerStyle

Required

WdRulerStyle

Controls the way 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.

See Also

Concepts

Column Object

Column Object Members