Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetItemChecked Method

CheckedListBox.GetItemChecked Method

Returns a value indicating whether the specified item is checked.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public bool GetItemChecked(
	int index
)

Parameters

index
Type: System.Int32

The index of the item.

Return Value

Type: System.Boolean
true if the item is checked; otherwise, false.

ExceptionCondition
ArgumentException

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft