Winnovative Excel Library

ExcelWorksheetAutofitColumn Method

Winnovative Excel Library Documentation
Changes the width of the specified column to achieve the best fit for the cells content.

Namespace:  Winnovative.ExcelLib
Assembly:  wnvxls (in wnvxls.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax

public void AutofitColumn(
	int columnIndex
)

Parameters

columnIndex
Type: SystemInt32
The one based index of the column to autofit.
See Also

Reference