Example #1
0
            private Row(X.Row row, X.SharedStringTable sst)
            {
                cellList = row.Cells
                           .Where(c => c.CellType != X.CellDataType.None)
                           .Select(c => cellFactory.Create(c, sst))
                           .ToList();

                if (cellList.Count > 0)
                {
                    Columns = row.Cells.Length;
                }

                cellColumnLookup = cellList
                                   .ToDictionary(c => ColumnToIndex(c.Column));

                cellLookup = cellList
                             .ToDictionary(c => c.Column);
            }
Example #2
0
 public Row Create(X.Row row, X.SharedStringTable sst) => new Row(row, sst);