Index
(number) The index (line number) of the item whose checkbox state you want. You can use an index of
-1 to access the last item in the list.
Re t u r n s
(number) A number representing the checkbox state of the item. If an error occurs, the value -1 (LB_ERROR) is returned.
CONSTANT |
VALUE DESCRIPTION |
|
BST_UNCHECKED |
0 |
The item's checkbox is unchecked. |
BST_CHECKED |
1 |
The item's checkbox is checked. |
BST_INDETERMINATE |
2 |
The item's checkbox is in an "indeterminate" state. Usually used to indicate a "mix" of checked and unchecked items. |
You can use Application.GetLastError to determine whether this action failed, and why.