WorksheetAutoFitColumn Method (Int32, Int32, Int32)

Autofits the column width.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.2.0.0 (20.2)
Syntax
public void AutoFitColumn(
	int columnIndex,
	int firstRow,
	int lastRow
)

Parameters

columnIndex
Type: SystemInt32
Column index.
firstRow
Type: SystemInt32
First row index.
lastRow
Type: SystemInt32
Last row index.
Remarks
This method autofits a row based on content in a range of cells within the row.
See Also