Share via


Cells.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 Cells

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 affect.

See Also

Reference

Cells Interface

Cells Members

Microsoft.Office.Interop.Word Namespace