예제 #1
0
        private IList <Cell> CellsFromRaster(IEmbeddedWorksheet worksheet, string[] raster, Action <ICell, string> setup)
        {
            var cells = new List <Cell>();

            for (var i = 0; i < raster.Length; i++)
            {
                var line = raster[i];
                for (var j = 0; j < 3; j++)
                {
                    var cell = new Cell(worksheet, Row(i), Column(j));
                    setup(cell, line[j].ToString());
                    cells.Add(cell);
                }
            }

            return(cells);
        }
예제 #2
0
 public Cell(IEmbeddedWorksheet worksheet, Row row, Column column)
 {
     Worksheet = worksheet;
     Row       = row;
     Column    = column;
 }