Example #1
0
 internal ExcelCellCollection(ExcelWorksheet parent, ExcelCellCollection sourceCells) : base(parent)
 {
     foreach (ExcelCell cell in sourceCells)
     {
         base.Items.Add(new ExcelCell(base.Parent, cell));
     }
 }
Example #2
0
        public void InsertCopy(int columnCount, ExcelColumn sourceColumn)
        {
            ExcelRowCollection rows = sourceColumn.Parent.Parent.Rows;
            int num = 0;

            foreach (ExcelRow row in base.Parent.Parent.Rows)
            {
                ExcelCellCollection allocatedCells = rows[num].AllocatedCells;
                ExcelCell           sourceCell     = null;
                if (allocatedCells.Count > sourceColumn.Index)
                {
                    sourceCell = allocatedCells[sourceColumn.Index];
                }
                row.AllocatedCells.Insert(base.Index, columnCount, sourceCell);
                num++;
            }
            ((ExcelColumnCollection)base.Parent).InsertInternal(base.Index, columnCount, sourceColumn);
        }
Example #3
0
 internal ExcelRow(ExcelRowCollection parent, int index) : base(parent, index)
 {
     this.height         = 255;
     this.cellCollection = new ExcelCellCollection(parent.Parent);
 }
Example #4
0
 internal ExcelRow(ExcelRowCollection parent, ExcelRow sourceRow) : base(parent, (ExcelColumnRowBase)sourceRow)
 {
     this.height         = 255;
     this.height         = sourceRow.height;
     this.cellCollection = new ExcelCellCollection(parent.Parent, sourceRow.cellCollection);
 }