TableLayoutRowStyleCollection.IndexOf(RowStyle) Méthode

Définition

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.

S’applique à

Voir aussi