TableLayoutRowStyleCollection.IndexOf(RowStyle) Método

Definição

Determina o índice de um item específico em 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

Parâmetros

rowStyle
RowStyle

O RowStyle a ser localizado no TableLayoutRowStyleCollection.

Retornos

Int32

O índice de rowStyle se encontrado na TableLayoutRowStyleCollection, caso contrário, -1.

Comentários

O IndexOf método começa a pesquisar no primeiro elemento do TableLayoutRowStyleCollection e termina quando encontra uma correspondência ou atinge o último elemento.

Aplica-se a

Confira também