You didn’t read far enough:
There, you have your widths. Go back to your code and plug that in. Tada, mission accomplished.
“Wait, so why can’t those widths be calculated?”
Well, they can. I just think the effort’s not worth it. First, you need to know the font of the text in that cell/column. Then there’s some weird truncation calculation based on the width of characters in that font… You know what, here’s an extract from the Open XML SDK documentation:
width = Truncate([{Number of Characters} * {Maximum Digit Width} + {5 pixel padding}] / {Maximum Digit Width} * 256) / 256