ClosedXML - Carriage Return Within a Cell
Asked Answered
R

1

7


I generate an Excel file with ClosedXML and I want to know how can I do a Carriage Return Within a Cell?

Retaretable answered 7/9, 2018 at 14:33 Comment(0)
H
11

You can use Environment.NewLine to add a "carriage return" to a cell's value.

Harlie answered 10/9, 2018 at 10:45 Comment(1)
"Simply concatenate " + Environment.NewLine + " into a string"; This works for text in Comments also.Tabethatabib

© 2022 - 2024 — McMap. All rights reserved.