Worksheet.AutoFitColumn

AutoFitColumn(int, int, int)

Autofits the column width.

public void AutoFitColumn(int columnIndex, int firstRow, int lastRow)
ParameterTypeDescription
columnIndexInt32Column index.
firstRowInt32First row index.
lastRowInt32Last row index.

Remarks

This method autofits a row based on content in a range of cells within the row.

See Also


AutoFitColumn(int)

Autofits the column width.

public void AutoFitColumn(int columnIndex)
ParameterTypeDescription
columnIndexInt32Column index.

Remarks

AutoFitColumn is an imprecise function.

See Also