Esempio n. 1
0
        public void SetRowProperties(int rowIndex, int heightIn20thPoints, byte rowOutlineLevel, bool collapsed, bool autoSize)
        {
            if (rowIndex > this.MaxRows)
            {
                throw new ReportRenderingException(ExcelRenderRes.MaxRowExceededInSheet(rowIndex.ToString(CultureInfo.InvariantCulture), this.MaxRows.ToString(CultureInfo.InvariantCulture)));
            }
            double num = (double)heightIn20thPoints / 20.0;

            this._currentRow.Height       = num;
            this._currentRow.CustomHeight = !autoSize;
            if (rowOutlineLevel > 7)
            {
                rowOutlineLevel = 7;
            }
            this._currentRow.OutlineLevel     = rowOutlineLevel;
            this._currentRow.OutlineCollapsed = collapsed;
            this._currentRow.Hidden           = collapsed;
            foreach (Picture item in this._picturesStartingOnCurrentRow)
            {
                item.UpdateRowOffset(num, true);
            }
            this._picturesStartingOnCurrentRow.Clear();
            List <Picture> list = default(List <Picture>);

            if (this._picturesToUpdateByEndRow.TryGetValue(rowIndex, out list))
            {
                foreach (Picture item2 in list)
                {
                    item2.UpdateRowOffset(num, false);
                }
            }
        }
Esempio n. 2
0
 public void AddRow(int rowIndex)
 {
     if (rowIndex > this.MaxRows)
     {
         throw new ReportRenderingException(ExcelRenderRes.MaxRowExceededInSheet(rowIndex.ToString(CultureInfo.InvariantCulture), this.MaxRows.ToString(CultureInfo.InvariantCulture)));
     }
     this._maxRowIndex = Math.Max(this._maxRowIndex, rowIndex);
 }
Esempio n. 3
0
 public void SetRowContext(int rowIndex)
 {
     this.FinalizeCell();
     if (rowIndex > this.MaxRows)
     {
         throw new ReportRenderingException(ExcelRenderRes.MaxRowExceededInSheet(rowIndex.ToString(CultureInfo.InvariantCulture), this.MaxRows.ToString(CultureInfo.InvariantCulture)));
     }
     this._currentRow = this._currentSheet.CreateRow(rowIndex);
 }