ListViewGroupCollection::GetEnumerator Method ()

 

Returns an enumerator used to iterate through the collection.

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

public:
virtual IEnumerator^ GetEnumerator() sealed

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: