public void Cleanup()
        {
            List <int> list = new List <int>(this.CellsMap.Keys);

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