How do I align text for a single subitem in a ListView using C#?

后端 未结 6 979
离开以前
离开以前 2021-01-18 08:57

I wasn\'t able to find an answer anywhere about this seemingly simple topic: is it possible to align text of a single subitem in a WinForms ListView control?

6条回答
  •  借酒劲吻你
    2021-01-18 09:26

    example :

    listView1.Columns[1].TextAlign = HorizontalAlignment.Right;
    

    will set Column's "1" alignment to right

提交回复
热议问题