CheckBoxListSetItemCheckState(Object, CheckState) Method
Sets the check state of the item with the specified key to the specified value
Namespace: EWSoftware.ListControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public int SetItemCheckState(
Object key,
CheckState state
)
Public Function SetItemCheckState (
key As Object,
state As CheckState
) As Integer
public:
int SetItemCheckState(
Object^ key,
CheckState state
)
member SetItemCheckState :
key : Object *
state : CheckState -> int
- key Object
- The item to change in the data source. The ValueMember
is searched for this value.
- state CheckState
- The new check state of the item
Int32The index of the item with the specified key or -1 if the item could not be found