TableLayoutColumnStyleCollection.IndexOf(ColumnStyle) Metod

Definition

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

Parametrar

Returer

Indexet för columnStyle om det TableLayoutColumnStyleCollectionfinns i ; annars -1.

Kommentarer

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

Gäller för

Se även