How to insert newline in string literal?

前端 未结 12 796
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 09:07

In .NET I can provide both \\r or \\n string literals, but there is a way to insert something like \"new line\" special character like Enviro

12条回答
  •  忘掉有多难
    2020-12-07 09:41

    Here, Environment.NewLine doesn't worked.

    I put a "<br/>" in a string and worked.

    Ex:

    ltrYourLiteral.Text = "First line.<br/>Second Line.";

提交回复
热议问题