public static Cell BuildCell(int index, ExcelColumn col, RowHandler row) { Cell cell = null; CellConstruct constr = new CellConstruct(index, col, row); switch (col.ColumnType) { case ExcelColumn.ColumnTypes.Counter: case ExcelColumn.ColumnTypes.Text: case ExcelColumn.ColumnTypes.Note: case ExcelColumn.ColumnTypes.Number: case ExcelColumn.ColumnTypes.Unknown: cell = new CellText(constr); break; case ExcelColumn.ColumnTypes.Choice: cell = new CellTextDropdown(constr); break; case ExcelColumn.ColumnTypes.Custom: cell = col.CellBuilder(constr, col.BuilderArgs); break; default: break; } return cell; }