Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Columns().AdjustToContents leaving extra padding

$
0
0
I'm adjusting a series of columns and rows. It is working and I can see that the columns widths have been adjusted. However, they are not adjusting to the same width as it would if I were to manually select all the columns and rows and select Format > AutoFit Column Width. It almost seems that its adding some padding or allowing for some padding in the Columns().AdjustToContents logic (see attached image for an example). Is there another setting that needs to be applied or am I using ws.Columns().AdjustToContents(startRow, endRow) incorrectly?
Image

Viewing all articles
Browse latest Browse all 1877

Trending Articles