TableLayoutRowStyleCollection.IndexOf(RowStyle) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Avgör indexet för ett specifikt objekt i 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
Parametrar
- rowStyle
- RowStyle
För RowStyle att hitta i TableLayoutRowStyleCollection.
Returer
Indexet för rowStyle om det TableLayoutRowStyleCollectionfinns i ; annars -1.
Kommentarer
Metoden IndexOf börjar söka i det första elementet i TableLayoutRowStyleCollection och slutar antingen när den hittar en matchning eller når det sista elementet.