...
- As AutoFitWidth sets the width of a column to just beyond the length of the longest cell, and as such can be seen as a very simple way to format items.
Code Block /* INCORRECT CODE: ColumnProperties columnProperties; for (int i = 0; i < 3; i++) { columnProperties = ws.GetColumnProperties(i); columnProperties.AutoFitWidth(); } */
Why this method causes issues:
...