TableLayoutRowStyleCollection.IndexOf(RowStyle) Méthode

Définition

Détermine l'index d'un élément spécifique d'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 à rechercher dans TableLayoutRowStyleCollection.

Retours

Index de rowStyle dans TableLayoutRowStyleCollection, s'il existe ; sinon, -1.

Remarques

La IndexOf méthode commence la recherche au premier élément du TableLayoutRowStyleCollection et se termine quand elle trouve une correspondance ou qu’elle atteint le dernier élément.

S’applique à

Voir aussi