Free Support Forum - aspose.com

Linebreak inside a cell?

Hello,

Does someone know how i can insert a linebreak inside a cell in Aspose.Excel? [:^)]

Thanks,
Muriel

Hi Muriel,

Please try this:

excel.Worksheets[0].Cells[“A1”].PutValue(“hello\nworld”);
excel.Worksheets[0].Cells[“A1”].Style.IsTextWrapped = true;