TableLayoutColumnStyleCollection.IndexOf(ColumnStyle) Metoda

Definice

Určuje index konkrétní položky v sadě 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

Umístění ColumnStyle v souboru TableLayoutColumnStyleCollection.

Návraty

Int32

Index columnStyle pokud je nalezen v TableLayoutColumnStyleCollection; jinak , -1.

Poznámky

Metoda IndexOf začne prohledávat první prvek TableLayoutColumnStyleCollection a končí buď při nalezení shody, nebo dosáhne posledního prvku.

Platí pro

Viz také