123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Collections;
- namespace Biff8Excel.Excel
- {
-
-
-
-
- public class ExcelRowLinkDictionary : SortedList<ushort,ExcelCellLinkDictionary>
- {
- ExcelCellLinkDictionary arrCells;
-
-
- ExcelWorkbook pWorkbook;
- public ExcelRowLinkDictionary(ExcelWorkbook pWorkbook) : base()
- {
- this.pWorkbook = pWorkbook;
- }
-
-
-
-
-
-
- public void AddCell(ushort iRow, ushort iColumn, ExcelCell oCell)
- {
-
-
-
-
-
-
-
-
-
-
- if (this.TryGetValue(iRow, out arrCells))
- {
- arrCells.SetCell(iColumn, oCell);
- }
- else
- {
- arrCells = new ExcelCellLinkDictionary(pWorkbook);
-
- arrCells.rowNumber = iRow;
- arrCells.AddCell(iColumn, oCell);
- this.Add(iRow, arrCells);
- }
- }
- internal ushort LastUsedRow
- {
- get { return this.Keys[this.Count - 1]; }
-
- }
-
-
-
-
- }
- }
|