ListViewGroupCollection.GetEnumerator Method ()

 
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.

Returns an enumerator used to iterate through the collection.

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

public IEnumerator GetEnumerator()

Return Value

Type: System.Collections.IEnumerator

An IEnumerator that represents the collection.

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 Count property to determine the number of loops.

.NET Framework
Available since 2.0
Return to top
Show: