BaseCheckedListBoxControl.SetItemChecked(Int32, Boolean) Method

Sets the specified item's state to checked or unchecked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public virtual void SetItemChecked(
    int index,
    bool value
)
Public Overridable Sub SetItemChecked(
    index As Integer,
    value As Boolean
)

Parameters

Name Type Description
index Int32

An integer value that specifies the zero-based index of the item whose check state should be changed.

value Boolean

true, if the item is checked; false, if the item is unchecked.

Remarks

Use the SetItemChecked method to set an item's state to checked or unchecked. The ItemCheck event raises if the state is changed.

To set an item's check state before the form is loaded, call the ForceInitialize method before the SetItemChecked method.

See Also