AODL.Document.Content.Tables.Row.GetCellIndex C# (CSharp) Method

GetCellIndex() public method

Gets the index of the cell.
public GetCellIndex ( Cell cell ) : int
cell Cell The cell.
return int
		public int GetCellIndex(Cell cell)
		{
			if (cell != null && this.Cells != null)
			{
				for(int i=0; i<this.Cells.Count; i++)
					if (this.Cells[i].Equals(cell))
					return i;
			}

			return -1;
		}