ListViewItem.ListViewSubItemCollection.Item Property (Int32)


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

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

public ListViewItem.ListViewSubItem this[
	int index
] { get; set; }


Type: System.Int32

The index of the item in the collection to retrieve.

Property Value

Type: System.Windows.Forms.ListViewItem.ListViewSubItem

A ListViewItem.ListViewSubItem representing the subitem located at the specified index within the collection.

Exception Condition

The index parameter is less than zero or greater than or equal to the value of the Count property of the ListViewItem.ListViewSubItemCollection.

You can use this method to obtain the ListViewItem.ListViewSubItem stored at a specific location in the collection. To determine the index of a specific item in the collection, use the IndexOf method.

.NET Framework
Available since 1.1
Return to top