TableLayoutColumnStyleCollection.IndexOf Method (ColumnStyle)


Determines the index of a specific item in the TableLayoutColumnStyleCollection.

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

public int IndexOf(
	ColumnStyle columnStyle


Type: System.Windows.Forms.ColumnStyle

The ColumnStyle to locate in the TableLayoutColumnStyleCollection.

Return Value

Type: System.Int32

The index of columnStyle if found in the TableLayoutColumnStyleCollection; otherwise, -1.

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

.NET Framework
Available since 2.0
Return to top