Beispiel #1
0
        public XLRangeColumn(XLRangeParameters rangeParameters, bool quickLoad)
            : base(rangeParameters.RangeAddress)
        {
            if (quickLoad) return;

            SubscribeToShiftedRows((range, rowsShifted) => this.WorksheetRangeShiftedRows(range, rowsShifted));
            SubscribeToShiftedColumns((range, columnsShifted) => this.WorksheetRangeShiftedColumns(range, columnsShifted));
            SetStyle(rangeParameters.DefaultStyle);
        }
Beispiel #2
0
 public XLRangeRow(XLRangeParameters rangeParameters, bool quickLoad)
     : base(rangeParameters.RangeAddress)
 {
     RangeParameters = rangeParameters;
     if (quickLoad) return;
     if (!RangeParameters.IgnoreEvents)
     {
         SubscribeToShiftedRows((range, rowsShifted) => this.WorksheetRangeShiftedRows(range, rowsShifted));
         SubscribeToShiftedColumns((range, columnsShifted) => this.WorksheetRangeShiftedColumns(range, columnsShifted));
     }
     SetStyle(rangeParameters.DefaultStyle);
 }
Beispiel #3
0
        public XLRangeColumn(XLRangeParameters rangeParameters, bool quickLoad)
            : base(rangeParameters.RangeAddress)
        {
            if (quickLoad)
            {
                return;
            }

            SubscribeToShiftedRows((range, rowsShifted) => this.WorksheetRangeShiftedRows(range, rowsShifted));
            SubscribeToShiftedColumns((range, columnsShifted) => this.WorksheetRangeShiftedColumns(range, columnsShifted));
            SetStyle(rangeParameters.DefaultStyle);
        }
Beispiel #4
0
        public XLRange(XLRangeParameters xlRangeParameters)
            : base(xlRangeParameters.RangeAddress)
        {
            RangeParameters = new XLRangeParameters(xlRangeParameters.RangeAddress, xlRangeParameters.DefaultStyle);

            if (!xlRangeParameters.IgnoreEvents)
            {
                SubscribeToShiftedRows((range, rowShifted) => this.WorksheetRangeShiftedRows(range, rowShifted));
                SubscribeToShiftedColumns((range, columnsShifted) => this.WorksheetRangeShiftedColumns(range, columnsShifted));
                //xlRangeParameters.IgnoreEvents = true;
            }
            SetStyle(xlRangeParameters.DefaultStyle);
        }
Beispiel #5
0
        public XLRange(XLRangeParameters xlRangeParameters)
            : base(xlRangeParameters.RangeAddress)
        {
            RangeParameters = new XLRangeParameters(xlRangeParameters.RangeAddress, xlRangeParameters.DefaultStyle);

            if (!xlRangeParameters.IgnoreEvents)
            {
                SubscribeToShiftedRows((range, rowShifted) => this.WorksheetRangeShiftedRows(range, rowShifted));
                SubscribeToShiftedColumns((range, columnsShifted) => this.WorksheetRangeShiftedColumns(range, columnsShifted));
                //xlRangeParameters.IgnoreEvents = true;
            }
            SetStyle(xlRangeParameters.DefaultStyle);
        }
Beispiel #6
0
 public XLRangeRow(XLRangeParameters rangeParameters, bool quickLoad)
     : base(rangeParameters.RangeAddress)
 {
     RangeParameters = rangeParameters;
     if (quickLoad)
     {
         return;
     }
     if (!RangeParameters.IgnoreEvents)
     {
         SubscribeToShiftedRows((range, rowsShifted) => this.WorksheetRangeShiftedRows(range, rowsShifted));
         SubscribeToShiftedColumns((range, columnsShifted) => this.WorksheetRangeShiftedColumns(range, columnsShifted));
     }
     SetStyle(rangeParameters.DefaultStyle);
 }
Beispiel #7
0
 /// <summary>
 /// The direct contructor should only be used in <see cref="XLWorksheet.RangeFactory"/>.
 /// </summary>
 public XLRangeColumn(XLRangeParameters rangeParameters)
     : base(rangeParameters.RangeAddress, (rangeParameters.DefaultStyle as XLStyle).Value)
 {
 }
Beispiel #8
0
 public XLRange(XLRangeParameters xlRangeParameters)
     : base(xlRangeParameters.RangeAddress, (xlRangeParameters.DefaultStyle as XLStyle).Value)
 {
 }
Beispiel #9
0
 public XLRangeColumn(XLRangeParameters rangeParameters, bool quickLoad, IXLTable table)
     : this(rangeParameters, quickLoad)
 {
     this.Table = table;
 }
Beispiel #10
0
 /// <summary>
 /// The direct contructor should only be used in <see cref="XLWorksheet.RangeFactory"/>.
 /// </summary>
 public XLTable(XLRangeParameters xlRangeParameters)
     : base(xlRangeParameters)
 {
     InitializeValues(false);
 }
Beispiel #11
0
        public XLRangeRow CreateRangeRow(XLRangeAddress rangeAddress)
        {
            var xlRangeParameters = new XLRangeParameters(rangeAddress, Worksheet.Style);

            return(new XLRangeRow(xlRangeParameters));
        }