コード例 #1
0
 private void SelectAll_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < InfoList.Items.Count; i++)
     {
         InfoList.SetItemChecked(i, true);
     }
 }
コード例 #2
0
 private void ReverseSelect_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < InfoList.Items.Count; i++)
     {
         if (InfoList.GetItemChecked(i))
         {
             InfoList.SetItemChecked(i, false);
         }
         else
         {
             InfoList.SetItemChecked(i, true);
         }
     }
 }