public string GetCellLocation(Cell cell) { return GetCellLocation(cellpositions[cell]); }
public Cell AddCell(Cell cell, int xpos, int ypos) { var pos = Tuple.Create(xpos, ypos); spreadsheet.Add(pos, cell); cellpositions.Add(cell, pos); if (xpos > xmax) xmax = xpos; if (ypos > ymax) ymax = ypos; return cell; }