Text Wrapping Strangely

Aug 21, 2012 at 4:57 PM

When I use SetTextWrap the text is getting broken up in strange ways for example

My First Co   |   My Secon
lumn             |   d Column

 

How does text wrapping work?

Thanks for your time,

Aeden

Coordinator
Aug 21, 2012 at 9:28 PM

How can I reproduce it? The following works as expected:

ws.FirstCell().SetValue("My First Column").Style.Alignment.SetWrapText();
Aug 22, 2012 at 9:43 PM
This is the exact text that causes the issue for me. Sorry I should have used that in the first place

ws.FirstCell().SetValue("Infrastructure").Style.Alignment.SetWrapText();
Coordinator
Aug 22, 2012 at 10:24 PM

That's how Excel works. Open up Excel, put "Infrastructure" on cell A1, and then set it to wrap the text. You'll get the same result as with ClosedXML.