CheckedListBox.GetItemChecked(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value indicating whether the specified item is checked.
public:
bool GetItemChecked(int index);
public bool GetItemChecked(int index);
member this.GetItemChecked : int -> bool
Public Function GetItemChecked (index As Integer) As Boolean
- index
- Int32
The index of the item.
true
if the item is checked; otherwise, false
.
The index
specified is less than zero.
-or-
The index
specified is greater than or equal to the count of items in the list.
GetItemChecked returns true
if the value of CheckState is Checked
or Indeterminate
for the item. To determine the specific state the item is in, use the GetItemCheckState method.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: