CheckedListBox.CheckedItemCollection.Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an object in the checked items collection.

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

[BrowsableAttribute(false)]
public object this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

An index into the collection of checked items. This collection index corresponds to the index of the checked item.

Property Value

Type: System.Object

The object at the specified index. For more information, see the examples in the CheckedListBox.CheckedItemCollection class overview.

Exception Condition
NotSupportedException

The object cannot be set.

The CheckedItems collection is a subset of the objects in the Items collection, representing only items that are checked. This collection is ordered in ascending order.

.NET Framework
Available since 1.1
Return to top
Show: