ZForge.Controls.XPTable.Models.ColumnCollection.IndexOf C# (CSharp) Method

IndexOf() public method

Returns the index of the specified Column in the model
public IndexOf ( Column column ) : int
column Column The Column to look for
return int
        public int IndexOf(Column column)
        {
            for (int i=0; i<this.Count; i++)
            {
                if (this[i] == column)
                {
                    return i;
                }
            }

            return -1;
        }