Check Box ListSet Item Checked(Object, Boolean) Method
Sets the check state of the item with the specified key to Checked or Unchecked
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 SetItemChecked(
Object key,
bool check
)VB
Public Function SetItemChecked (
key As Object,
check As Boolean
) As IntegerC++
public:
int SetItemChecked(
Object^ key,
bool check
)F#
member SetItemChecked :
key : Object *
check : bool -> int Parameters
- key Object
- The item to check or uncheck in the data source. The ValueMember is searched for this value.
- check Boolean
- True to check the item, false to uncheck it.
Return Value
Int32The index of the item with the specified key or -1 if the item could not be found