ListViewGroupCollection.GetEnumerator ListViewGroupCollection.GetEnumerator ListViewGroupCollection.GetEnumerator ListViewGroupCollection.GetEnumerator Method

Definition

Returns an enumerator used to iterate through the collection.

public:
 virtual System::Collections::IEnumerator ^ GetEnumerator();
public System.Collections.IEnumerator GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.IEnumerator
override this.GetEnumerator : unit -> System.Collections.IEnumerator
Public Function GetEnumerator () As IEnumerator

Returns

An IEnumerator that represents the collection.

Implements

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

Applies to