TableLayoutRowStyleCollection.IndexOf(RowStyle) 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.
Détermine l’index d’un élément spécifique dans le TableLayoutRowStyleCollection.
public:
int IndexOf(System::Windows::Forms::RowStyle ^ rowStyle);
public int IndexOf(System.Windows.Forms.RowStyle rowStyle);
member this.IndexOf : System.Windows.Forms.RowStyle -> int
Public Function IndexOf (rowStyle As RowStyle) As Integer
Paramètres
- rowStyle
- RowStyle
À RowStyle localiser dans le TableLayoutRowStyleCollection.
Retours
Index de s’il rowStyle est trouvé dans le TableLayoutRowStyleCollection; sinon, -1.
Remarques
La IndexOf méthode commence à rechercher au premier élément de l’élément TableLayoutRowStyleCollection et se termine lorsqu’elle trouve une correspondance ou qu’elle atteint le dernier élément.