Bahasa

TableLayoutRowStyleCollection.IndexOf(RowStyle) Metode

Definisi

Menentukan indeks item tertentu di 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

Parameter

rowStyle
RowStyle

untuk RowStyle menemukan di TableLayoutRowStyleCollection.

Mengembalikan

Indeks rowStyle jika ditemukan di TableLayoutRowStyleCollection; jika tidak, -1.

Keterangan

Metode ini IndexOf mulai mencari pada elemen pertama dan TableLayoutRowStyleCollection berakhir baik ketika menemukan kecocokan atau mencapai elemen terakhir.

Berlaku untuk

Lihat juga