Share via


Columns.AutoFit Method

Changes the width of a table column to accommodate the width of the text without changing the way text wraps in the cells.

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

Syntax

'Declaration
Sub AutoFit
'Usage
Dim instance As Columns

instance.AutoFit()
void AutoFit()

Remarks

If the table is already as wide as the distance between the left and right margins, this method has no effect.

See Also

Reference

Columns Interface

Columns Members

Microsoft.Office.Interop.Word Namespace