TableLayoutColumnStyleCollection.IndexOf(ColumnStyle) Metoda

Definice

Určuje index konkrétní položky v objektu TableLayoutColumnStyleCollection.

public:
 int IndexOf(System::Windows::Forms::ColumnStyle ^ columnStyle);
public int IndexOf(System.Windows.Forms.ColumnStyle columnStyle);
member this.IndexOf : System.Windows.Forms.ColumnStyle -> int
Public Function IndexOf (columnStyle As ColumnStyle) As Integer

Parametry

columnStyle
ColumnStyle

The ColumnStyle to locate in the TableLayoutColumnStyleCollection.

Návraty

Index nalezených v argumentu columnStyleTableLayoutColumnStyleCollection; v opačném případě - 1.

Poznámky

Metoda IndexOf začne prohledávat první prvek TableLayoutColumnStyleCollection a končí buď když najde shodu, nebo dosáhne posledního prvku.

Platí pro

Viz také