TableLayoutColumnStyleCollection::IndexOf Method (ColumnStyle^)
.NET Framework (current version)
Determines the index of a specific item in the TableLayoutColumnStyleCollection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- columnStyle
-
Type:
System.Windows.Forms::ColumnStyle^
The ColumnStyle to locate in the TableLayoutColumnStyleCollection.
Return Value
Type: System::Int32The 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
Available since 2.0
Show: