ExcelColumnAutoFitAdvanced Method

Note: This API is now obsolete.

Automatically fits column width to the minimum size required for all data in the column to be visible.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
[ObsoleteAttribute("Use 'GemBox.Spreadsheet.ExcelColumn.AutoFit(System.Single)' method instead. For more info, see https://www.gemboxsoftware.com/spreadsheet/help/html/Obsolete_Members.htm#ExcelColumnAutoFitAdvanced.")]
public void AutoFitAdvanced(
	float scaling


Type: SystemSingle
Scaling factor.

Auto-fit column width is a MS Excel feature and not a file format feature. Autofit method uses methods from System.Drawing to determine the real data width.

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