Export (0) Print
Expand All

CheckedListBox.CheckedIndexCollection.Item Property

Gets the index of a checked item in the CheckedListBox control.

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

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

Parameters

index
Type: System.Int32
An index into the checked indexes collection. This index specifies the index of the checked item you want to retrieve.

Property Value

Type: System.Int32
The index of the checked item. For more information, see the examples in the CheckedListBox.CheckedIndexCollection class overview.

ExceptionCondition
ArgumentException

The index is less than zero.

-or-

The index is not in the collection.

The index parameter is an index into the checked indexes collection. The return value is the corresponding indexed value, which is the index of the checked item in the items collection.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft