示例#1
0
 internal ExcelCellCollection(ExcelWorksheet parent, ExcelCellCollection sourceCells) : base(parent)
 {
     foreach (ExcelCell cell in sourceCells)
     {
         base.Items.Add(new ExcelCell(base.Parent, cell));
     }
 }
示例#2
0
文件: ExcelColumn.cs 项目: ikvm/test
        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);
        }
示例#3
0
 internal ExcelRow(ExcelRowCollection parent, int index) : base(parent, index)
 {
     this.height         = 255;
     this.cellCollection = new ExcelCellCollection(parent.Parent);
 }
示例#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);
 }