System.Windows.Forms.CheckedListBox.SetItemCheckState(int, System.Windows.Forms.CheckState)

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

18 Examples 7

1. Example

Project: tesvsnip
Source File: ToolStripCheckedListBox.cs
View license
public void SetItemState(int i, CheckState checkState)
        {
            if (i >= 0 && i < Items.Count)
                CheckedListBoxControl.SetItemCheckState(i, checkState);
        }

2. Example

View license
public void SetItemState(int i, CheckState checkState)
        {
            if (i >= 0 && i < Items.Count)
                CheckedListBoxControl.SetItemCheckState(i, checkState);
        }

3. Example

View license
public void SetItemState(int i, CheckState checkState) {
            if (i >= 0 && i < this.Items.Count)
                this.CheckedListBoxControl.SetItemCheckState(i, checkState);
        }

4. Example

View license
public void SetItemState(int i, CheckState checkState) {
            if (i >= 0 && i < this.Items.Count)
                this.CheckedListBoxControl.SetItemCheckState(i, checkState);
        }

5. Example

View license
public void SetItemState(int i, CheckState checkState) {
            if (i >= 0 && i < this.Items.Count)
                this.CheckedListBoxControl.SetItemCheckState(i, checkState);
        }

6. Example

View license
public void SetItemState(int i, CheckState checkState) {
            if (i >= 0 && i < this.Items.Count)
                this.CheckedListBoxControl.SetItemCheckState(i, checkState);
        }

7. Example

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

8. Example

Project: tesvsnip
Source File: ToolStripCheckedListBox.cs
View license
public void AddItem(object item, CheckState state)
        {
            Items.Add(item);
            CheckedListBoxControl.SetItemCheckState(Items.Count - 1, state);
        }

9. Example

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

10. Example

View license
public void AddItem(object item, CheckState state)
        {
            Items.Add(item);
            CheckedListBoxControl.SetItemCheckState(Items.Count - 1, state);
        }

11. Example

View license
public void AddItem(object item, CheckState state) {
            this.Items.Add(item);
            this.CheckedListBoxControl.SetItemCheckState(this.Items.Count - 1, state);
        }

12. Example

View license
public void AddItem(object item, CheckState state) {
            this.Items.Add(item);
            this.CheckedListBoxControl.SetItemCheckState(this.Items.Count - 1, state);
        }

13. Example

View license
public void AddItem(object item, CheckState state) {
            this.Items.Add(item);
            this.CheckedListBoxControl.SetItemCheckState(this.Items.Count - 1, state);
        }

14. Example

View license
public void AddItem(object item, CheckState state) {
            this.Items.Add(item);
            this.CheckedListBoxControl.SetItemCheckState(this.Items.Count - 1, state);
        }

15. Example

Project: Neo
Source File: CreatureEditorControl.cs
View license
private void checkFlagOrBitmask(CheckedListBox list, Type e, uint value)
        {
            if (!e.IsEnum)
                return;

            foreach (int i in list.CheckedIndices)
            {
                list.SetItemCheckState(i, CheckState.Unchecked);
            }

            var values = Enum.GetValues(e);

            for(int i = values.Length-1;i>0;i--)
            {
                uint val = Convert.ToUInt32(values.GetValue(i));
                if(val <= value)
                {
                    list.SetItemCheckState(i,CheckState.Checked);
                    value -= val;
                }
            }
        }

16. Example

Project: Neo
Source File: GameObjectEditorControl.cs
View license
private void checkFlagOrBitmask(CheckedListBox list, Type e, uint value)
        {
            if (!e.IsEnum)
                return;

            foreach (int i in list.CheckedIndices)
            {
                list.SetItemCheckState(i, CheckState.Unchecked);
            }

            var values = Enum.GetValues(e);

            for (int i = values.Length - 1; i > 0; i--)
            {
                uint val = Convert.ToUInt32(values.GetValue(i));
                if (val <= value)
                {
                    list.SetItemCheckState(i, CheckState.Checked);
                    value -= val;
                }
            }
        }

17. Example

Project: Neo
Source File: ItemEditorControl.cs
View license
private void checkFlagOrBitmask(CheckedListBox list, Type e, long value)
        {
            if (!e.IsEnum)
                return;

            foreach (int i in list.CheckedIndices)
            {
                list.SetItemCheckState(i, CheckState.Unchecked);
            }

            if (value == 0 && list == this.AllowableClass || list == this.AllowableRace)
            {
                list.SetItemCheckState(0, CheckState.Checked);
            }
            else
            {
                var values = Enum.GetValues(e);
                for (int i = values.Length - 1; i >= 0; i--)
                {
                    long val = Convert.ToInt64(values.GetValue(i));
                    if (val <= value)
                    {
                        if(val != 0)
                        {
                            list.SetItemCheckState(i, CheckState.Checked);
                            value -= val;
                        }
                    }
                }
            }
        }

18. Example

View license
private void GenerateProcessList(CheckedListBox target)
        {
            List<string> Pro/n ..... /n //View Source file for more details /n }