System.Windows.Forms.CheckedListBox.GetItemCheckState(int)

Here are the examples of the csharp api class System.Windows.Forms.CheckedListBox.GetItemCheckState(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

10 Examples 7

1. Example

View license
public string GetChecked(int ignore = 0)
        {
            string ret = "";

            int total = 0;
            for (int i = ignore; i < clb.Items.Count; i++)
            {
                if (clb.GetItemCheckState(i) == CheckState.Checked)
                {
                    ret += clb.Items[i] + ";";
                    total++;
                }
            }

            if (total == clb.Items.Count - ignore)
                ret = "All";
            if (ret.Length == 0)
                ret = "None";

            return ret;
        }

2. Example

Project: tesvsnip
Source File: CheckedComboBox.cs
View license
public CheckState GetItemCheckState(int index)
        {
            if (index < 0 || index >= Items.Count)
            {
                throw new ArgumentOutOfRangeException("index", "value out of range");
            }
            else
            {
                return dropdown.List.GetItemCheckState(index);
            }
        }

3. Example

Project: tesvsnip
Source File: ToolStripCheckedListBox.cs
View license
public CheckState GetItemCheckState(int i)
        {
            return CheckedListBoxControl.GetItemCheckState(i);
        }

4. Example

Project: falloutsnip
Source File: CheckedComboBox.cs
View license
public CheckState GetItemCheckState(int index)
        {
            if (index < 0 || index >= Items.Count)
            {
                throw new ArgumentOutOfRangeException("index", "value out of range");
            }
            else
            {
                return dropdown.List.GetItemCheckState(index);
            }
        }

5. Example

View license
public CheckState GetItemCheckState(int i)
        {
            return CheckedListBoxControl.GetItemCheckState(i);
        }

6. Example

View license
public CheckState GetItemCheckState(int i) {
            return this.CheckedListBoxControl.GetItemCheckState(i);
        }

7. Example

View license
public CheckState GetItemCheckState(int i) {
            return this.CheckedListBoxControl.GetItemCheckState(i);
        }

8. Example

View license
public CheckState GetItemCheckState(int i) {
            return this.CheckedListBoxControl.GetItemCheckState(i);
        }

9. Example

View license
public CheckState GetItemCheckState(int i) {
            return this.CheckedListBoxControl.GetItemCheckState(i);
        }

10. Example

Project: cs-script
Source File: ConfigConsole.cs
View license
private void Save()
        {
            button2.Enabled = false;
            button3.Enabled = false;

            for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                installer.ContextMenus[i].Enabled = (checkedListBox1.GetItemCheckState(i) == CheckState.Checked);
            }

            installer.doubleClickAction = doubleClickAction.Text;
            installer.targetCLRVersion.Version = comboBox1.Text;
            installer.Update();
        }