Ejemplo n.º 1
0
        public XLRow(Int32 row, XLRowParameters xlRowParameters)
            : base(new XLRangeAddress(new XLAddress(xlRowParameters.Worksheet, row, 1, false, false),
                                      new XLAddress(xlRowParameters.Worksheet, row, XLHelper.MaxColumnNumber, false,
                                                    false)))
        {
            SetRowNumber(row);

            IsReference = xlRowParameters.IsReference;
            if (IsReference)
                SubscribeToShiftedRows(WorksheetRangeShiftedRows);
            else
            {
                SetStyle(xlRowParameters.DefaultStyleId);
                _height = xlRowParameters.Worksheet.RowHeight;
            }
        }
Ejemplo n.º 2
0
        public XLRow(Int32 row, XLRowParameters xlRowParameters)
            : base(new XLRangeAddress(new XLAddress(xlRowParameters.Worksheet, row, 1, false, false),
                                      new XLAddress(xlRowParameters.Worksheet, row, XLHelper.MaxColumnNumber, false,
                                                    false)))
        {
            SetRowNumber(row);

            IsReference = xlRowParameters.IsReference;
            if (IsReference)
            {
                SubscribeToShiftedRows(WorksheetRangeShiftedRows);
            }
            else
            {
                SetStyle(xlRowParameters.DefaultStyleId);
                _height = xlRowParameters.Worksheet.RowHeight;
            }
        }