public void Cleanup() { List <int> list = new List <int>(CellsMap.Keys); list.Sort(); foreach (int item in list) { XMLCellModel xMLCellModel = (XMLCellModel)CellsMap[item]; xMLCellModel.Cleanup(); _row.C.Add(xMLCellModel.Data); } CellsMap.Clear(); }
public ICellModel getCell(int col) { if (col < 0 || col > 16383) { throw new FatalException(); } if (CellsMap.TryGetValue(col, out ICellModel value)) { return(value); } CT_Cell cT_Cell = new CT_Cell(); cT_Cell.R_Attr = CellPair.Name(RowNumber, col); value = new XMLCellModel(_worksheetModel, _manager, cT_Cell); CellsMap.Add(col, value); return(value); }