This topic has not yet been rated - Rate this topic

ListView.ListViewItemCollection.System.Collections.IList.Item Property

Note: This property is new in the .NET Framework version 2.0.

This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the ListViewItem at the specified index within the collection.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Object IList.this [
	int index
] { get; set; }
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

index

The zero-based index of the element to get.

Property Value

A ListViewItem that represents the item located at the specified index within the collection.
Exception typeCondition

ArgumentOutOfRangeException

The index parameter is less than 0 or greater than or equal to the value of the Count property of the ListView.ListViewItemCollection.

The item parameter can be set to any type. If item is a ListViewItem, it is added to the ListView.ListViewItemCollection. If item is another type, a new ListViewItem is created containing the string from the ToString method of item.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

.NET Compact Framework

Supported in: 2.0, 1.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.