ListBox.IntegerCollection.IndexOf(Int32) 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.
Récupère l’index dans l’entier ListBox.IntegerCollection spécifié.
public:
int IndexOf(int item);
public int IndexOf(int item);
member this.IndexOf : int -> int
Public Function IndexOf (item As Integer) As Integer
Paramètres
- item
- Int32
Entier pour lequel récupérer l’index.
Retours
Index de base zéro de l’entier dans le ListBox.IntegerCollection; sinon, négatif (-1).
Remarques
Utilisez la IndexOf méthode pour déterminer où se trouve un élément dans la collection. Pour déterminer si un élément se trouve dans la collection avant d’appeler cette méthode, utilisez la Contains méthode.