Click or drag to resize

ExcelColumnAutoFit Method

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:
public void AutoFit()

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.

See Also