예제 #1
0
        public CellStyleListFactory(Engine engine, ExcelInterop interop)
            : base(engine, "CellStyleList")
        {
            if (interop == null)
            {
                throw new ArgumentNullException(nameof(interop));
            }

            _interop = interop;
        }
예제 #2
0
        public CellStyleListInstance(Engine engine, ExcelInterop interop)
            : base(engine)
        {
            if (interop == null)
            {
                throw new ArgumentNullException(nameof(interop));
            }

            _interop = interop;
        }
예제 #3
0
        public WorkbookFactory(Engine engine, ExcelInterop interop)
            : base(engine, "Workbook")
        {
            if (interop == null)
            {
                throw new ArgumentNullException(nameof(interop));
            }

            _interop = interop;
        }
예제 #4
0
        public RowInstance(Engine engine, ExcelInterop interop)
            : base(engine)
        {
            if (interop == null)
            {
                throw new ArgumentNullException(nameof(interop));
            }

            _cellList     = interop.CellList.Construct();
            _cellList.Row = this;
            FastAddProperty("cells", _cellList, true, false, true);
        }
예제 #5
0
        public SheetInstance(Engine engine, ExcelInterop interop)
            : base(engine)
        {
            if (interop == null)
            {
                throw new ArgumentNullException(nameof(interop));
            }

            _interop = interop;

            _rowList       = interop.RowList.Construct();
            _rowList.Sheet = this;
            FastAddProperty("rows", _rowList, true, false, true);
            var mergeRegionList = interop.MergeRegionList.Construct();

            mergeRegionList.Sheet = this;
            FastAddProperty("mergeRegions", mergeRegionList, true, false, true);
        }
예제 #6
0
        public WorkbookInstance(Engine engine, XSSFWorkbook workbook, ExcelInterop interop)
            : base(engine)
        {
            if (workbook == null)
            {
                throw new ArgumentNullException(nameof(workbook));
            }

            Workbook = workbook;

            _interop = interop;

            _sheetList          = interop.SheetList.Construct();
            _sheetList.Workbook = this;
            FastAddProperty("sheets", _sheetList, true, false, true);
            _cellStyleList          = interop.CellStyleList.Construct();
            _cellStyleList.Workbook = this;
            FastAddProperty("cellStyles", _cellStyleList, true, false, true);
        }