Display label text with line breaks in c#

后端 未结 8 679
面向向阳花
面向向阳花 2020-12-05 09:28

Is it possible to display the label text with line breaks exactly as per the image

\"enter

8条回答
  •  旧时难觅i
    2020-12-05 10:19

    You can use
    for Line Breaks, and   for white space.

    string s = "First line 
    Second line";

    Output:

    First line
    Second line
    

    For more info refer to this: Line break in Label

提交回复
热议问题