XlsWorksheet
AutoFitColumn Method (Int32, Int32, Int32, AutoFitterOptions)
|
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,
AutoFitterOptions options
)
Public Sub AutoFitColumn (
columnIndex As Integer,
firstRow As Integer,
lastRow As Integer,
options As AutoFitterOptions
)
public:
void AutoFitColumn(
int columnIndex,
int firstRow,
int lastRow,
AutoFitterOptions^ options
)
member AutoFitColumn :
columnIndex : int *
firstRow : int *
lastRow : int *
options : AutoFitterOptions -> unit
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.
-
options
-
Type:
Spire.Xls.Core.Spreadsheet.AutoFilter
AutoFitterOptions
auto fit options
See Also