for (int i = 0; i < CheckListBox.Items.Count; i++) { if (CheckListBox.GetItemChecked(i)) { ... ... ... } else { ... ... } }