示例#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);
        }