System.Windows.Forms.TableLayoutRowStyleCollection.IndexOf Method

Determines the index of a specific item in the System.Windows.Forms.TableLayoutRowStyleCollection.

Syntax

public int IndexOf (RowStyle rowStyle)

Parameters

rowStyle
The System.Windows.Forms.RowStyle to locate in the System.Windows.Forms.TableLayoutRowStyleCollection.

Returns

The index of rowStyle if found in the System.Windows.Forms.TableLayoutRowStyleCollection; otherwise, -1.

Remarks

The TableLayoutRowStyleCollection.IndexOf(RowStyle) method begins searching at the first element of the System.Windows.Forms.TableLayoutRowStyleCollection and ends either when it finds a match or it reaches the last element.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0