Multiline Text In List View

前端 未结 3 1835
抹茶落季
抹茶落季 2021-01-14 03:03

I try to make a winform contains the ListView as Details (ListView1.View = \"Details\") This ListView has 2 SubItems and i need to Wrap String and put it to SubItem .

<
3条回答
  •  北海茫月
    2021-01-14 03:15

    You can wrap to the next line in a listitem's text using the '\n' character, e.g.:

    listView1.Items.Add("apples\noranges\nbananas");
    
    listView1.Items.Add("kiwis\ngrapefruits\nwatermelons");
    

提交回复
热议问题