Beispiel #1
0
        // ctor
        public TableBuilder(WorksheetFactory worksheetFactory, TableOptions options)
        {
            _worksheetFactory    = worksheetFactory ?? throw new ArgumentNullException(nameof(worksheetFactory));
            Options              = options ?? throw new ArgumentNullException(nameof(options));
            _tablePositionFinder = new TablePositionFinder(Options.TopLeft);

            prepare();
        }
Beispiel #2
0
        // ctor
        public RowBuilder(ExcelWorksheet ws,
                          Position topLeft,
                          TablePositionFinder tablePositionFinder)
        {
            _ws = ws ?? throw new ArgumentNullException(nameof(ws));

            _topLeft             = topLeft;
            _tablePositionFinder = tablePositionFinder
                                   ?? throw new ArgumentNullException(nameof(tablePositionFinder));
        }
Beispiel #3
0
 // ctor
 public RowBuilder(
     ExcelWorksheet ws,
     Position topLeft,
     TablePositionFinder tablePositionFinder,
     Func <IEnumerable <TSource> > dataFunc) : base(ws)
 {
     _topLeft             = topLeft;
     _tablePositionFinder = tablePositionFinder ?? throw new ArgumentNullException(nameof(tablePositionFinder));
     _dataFunc            = dataFunc ?? throw new ArgumentNullException(nameof(dataFunc));
 }