AutoFit Method
Collapse the table of content
Expand the table of content

NamedRange.AutoFit Method ()


Changes the width of the columns or the height of the rows in the NamedRange control to achieve the best fit.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

object AutoFit()

Return Value

Type: System.Object

One unit of column width is equal to the width of one character in the Normal style.

Return to top
© 2015 Microsoft