This project has moved and is read-only. For the latest updates, please go here.

Text Wrapping Strangely

Aug 21, 2012 at 5: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

Aug 21, 2012 at 10: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 10: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();
Aug 22, 2012 at 11: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.