System.Windows.Forms.TableLayoutColumnStyleCollection.IndexOf Method

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

Syntax

public int IndexOf (ColumnStyle columnStyle)

Parameters

columnStyle
The System.Windows.Forms.ColumnStyle to locate in the System.Windows.Forms.TableLayoutColumnStyleCollection.

Returns

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

Remarks

The TableLayoutColumnStyleCollection.IndexOf(ColumnStyle) method begins searching at the first element of the System.Windows.Forms.TableLayoutColumnStyleCollection 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