ListViewGroupCollection.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 or sets the ListViewGroup at the specified index within the collection.

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

public ListViewGroup this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

The index within the collection of the ListViewGroup to get or set.

Property Value

Type: System.Windows.Forms.ListViewGroup

The ListViewGroup at the specified index within the collection.

Exception Condition
ArgumentOutOfRangeException

index is less than 0 or greater than or equal to Count.

Use this property to retrieve the group at the specified index within the collection. When you have a reference to the group object and need the index, use the IndexOf method.

.NET Framework
Available since 2.0
Return to top
Show: