Bearbeiten

Freigeben über


ListView.ListViewItemCollection.GetEnumerator Method

Definition

Returns an enumerator to use to iterate through the item 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 item collection.

Implements

Exceptions

The owner ListView is in virtual mode.

Remarks

When the owner ListView is in virtual mode, you cannot enumerate through the ListView.ListViewItemCollection using an enumerator or call GetEnumerator. Instead, use the ListView.Items property to access an item by index value.

Applies to