WorksheetAutoFitColumns Method (Int32, Int32, Int32, Int32, AutoFitterOptions)
Autofits the columns width.

Namespace: Aspose.Cells
Assembly: Aspose.Cells (in Aspose.Cells.dll) Version: 19.11.0.0 (19.11)
Syntax
public void AutoFitColumns(
	int firstRow,
	int firstColumn,
	int lastRow,
	int lastColumn,
	AutoFitterOptions options
)

Parameters

firstRow
Type: SystemInt32
First row index.
firstColumn
Type: SystemInt32
First column index.
lastRow
Type: SystemInt32
Last row index.
lastColumn
Type: SystemInt32
Last column index.
options
Type: Aspose.CellsAutoFitterOptions
The auto fitting options
Remarks
AutoFitColumn is an imprecise function.
See Also