Simplexcel
Simplexcel copied to clipboard
Support Auto-Width columns
There is an attribute that allows to have Excel automatically size columns.
Instead of Sheet.ColumnWidths, I should have Sheet.Columns which has a lot more properties per column. This would be a breaking change though.
Maybe doing this in 3.0, where I might break a few things for a better API.
+1
I have written some kind of prototype using SixLabors.Fonts to automatically adjust the columns width here: https://github.com/0xced/Simplexcel/blob/AdjustWidthToContents/src/Simplexcel.TestApp/WorksheetExtensions.cs