Click or drag to resize

XlsWorksheet AutoFitColumn Method (Int32, Int32, Int32)

Autofit the column width.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void AutoFitColumn(
	int columnIndex,
	int firstRow,
	int lastRow
)

Parameters

columnIndex
Type: System Int32
Column index.
firstRow
Type: System Int32
One-based index of the first row to be used for autofit operation.
lastRow
Type: System Int32
One-based index of the last row to be used for autofit operation.
See Also