TableLayoutRowStyleCollection::IndexOf Method (RowStyle^)

 

Determines the index of a specific item in the TableLayoutRowStyleCollection.

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

public:
int IndexOf(
	RowStyle^ rowStyle
)

Parameters

rowStyle
Type: System.Windows.Forms::RowStyle^

The RowStyle to locate in the TableLayoutRowStyleCollection.

Return Value

Type: System::Int32

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

The IndexOf method begins searching at the first element of the TableLayoutRowStyleCollection and ends either when it finds a match or it reaches the last element.

.NET Framework
Available since 2.0
Return to top
Show: