TableLayoutRowStyleCollection.IndexOf(RowStyle) Metod

Definition

Avgör indexet för ett specifikt objekt i 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

Parametrar

rowStyle
RowStyle

För RowStyle att hitta i TableLayoutRowStyleCollection.

Returer

Indexet för rowStyle om det TableLayoutRowStyleCollectionfinns i ; annars -1.

Kommentarer

Metoden IndexOf börjar söka i det första elementet i TableLayoutRowStyleCollection och slutar antingen när den hittar en matchning eller når det sista elementet.

Gäller för

Se även