XPTable.Models.CellCollection.IndexOf C# (CSharp) 메소드

IndexOf() 공개 메소드

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

            return -1;
        }