Method SetChecked
SetChecked(int, bool)
Checks or clears the check state for the specified item in a CheckListBox.
public void SetChecked(int index, bool value)
Parameters
index
intThe zero-based index of the item in a CheckListBox to set or clear the check state.
value
booltrue
to check the specified item; otherwise, false.
Exceptions
- ArgumentOutOfRangeException
The specified index was outside the range of valid values.