📜  C# listview 作为列表框 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:20.986000             🧑  作者: Mango

代码示例1
this.listView1.View = View.Details;
this.listView1.HeaderStyle = ColumnHeaderStyle.None;
this.listView1.FullRowSelect = true;
this.listView1.Columns.Add("", -2);
this.listView1.Items.Add("Something");
this.listView1.Items.Add("Something else").BackColor = Color.Red;