Method SetItemChecked
SetItemChecked(int, bool)
Checks or clears the check state for the specified item.
public virtual bool SetItemChecked(int index, bool value)
Parameters
index
intThe zero-based index of the item in the control to set or clear the check state.
value
booltrue
to check the specified item; otherwise, false.
Returns
Remarks
This method repaints control and raises events. Use SetItemCheckedCore(int, bool) method to change checked state without raising events and repainting the control.