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

IndexOf() public method

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

            return -1;
        }