📅  最后修改于: 2022-03-11 14:49:09.691000             🧑  作者: Mango
var items = from ListItem li in ListBox1.Items
select li;
foreach (ListItem li in items)
{
li.Attributes.Add("disabled", "disabled");
}