System.Windows.Forms.ListViewGroupCollection.GetEnumerator Method

Returns an enumerator used to iterate through the collection.

Syntax

public IEnumerator GetEnumerator ()

Returns

An IEnumerator that represents the collection.

Remarks

This method is useful when you need to iterate through the collection to perform the same operation on each group. You can also loop through the collection once for each group, using the ListViewGroupCollection.Count property to determine the number of loops.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0