Check Box ListSet Item Check State(Object, Check State) Method
Sets the check state of the item with the specified key to the specified value
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The index of the item with the specified key or -1 if the item could not be found
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public int SetItemCheckState(
Object key,
CheckState state
)VB
Public Function SetItemCheckState (
key As Object,
state As CheckState
) As IntegerC++
public:
int SetItemCheckState(
Object^ key,
CheckState state
)F#
member SetItemCheckState :
key : Object *
state : CheckState -> int Parameters
- 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
Return Value
Int32The index of the item with the specified key or -1 if the item could not be found