ListViewGroupCollection.IndexOf(ListViewGroup) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne l’index du fichier spécifié ListViewGroup dans la collection.
public:
int IndexOf(System::Windows::Forms::ListViewGroup ^ value);
public int IndexOf(System.Windows.Forms.ListViewGroup value);
member this.IndexOf : System.Windows.Forms.ListViewGroup -> int
Public Function IndexOf (value As ListViewGroup) As Integer
Paramètres
- value
- ListViewGroup
À ListViewGroup localiser dans la collection.
Retours
Index de base zéro du groupe dans la collection, ou -1 si le groupe n’est pas dans la collection.
Remarques
Utilisez cette méthode pour déterminer l’index d’un groupe dans la collection. Cela est utile, par exemple, pour déterminer l’index de chaque groupe lorsque vous effectuez une itération dans la collection à l’aide de la IEnumeratorGetEnumerator méthode retournée.