GemBox.Spreadsheet

ExcelColumn.AutoFitAdvanced Method (Single, ExcelRow, ExcelRow)

Automatically fits column width by checking only the cells in the column that are specified by row range.

public void AutoFitAdvanced(
   float scaling,
   ExcelRow firstRow,
   ExcelRow lastRow
);

Parameters

scaling
Scaling factor.
firstRow
First row.
lastRow
Last row.

Remarks

Scaling factor is used to adjust the width of the column. Resulting column width is equal to CalculatedWidth * scaling. Default scaling is 1.

See Also

ExcelColumn Class | GemBox.Spreadsheet Namespace | ExcelColumn.AutoFitAdvanced Overload List