Determines the index of a specific item in the System.Windows.Forms.TableLayoutColumnStyleCollection.
- columnStyle
- The System.Windows.Forms.ColumnStyle to locate in the System.Windows.Forms.TableLayoutColumnStyleCollection.
The index of columnStyle if found in the System.Windows.Forms.TableLayoutColumnStyleCollection; otherwise, -1.
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.