DBCell.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Biff8Excel.Excel
  5. {
  6. public sealed class DBCell : IDisposable
  7. {
  8. Biff8Excel.Records.DBCell m_dbcell;
  9. uint m_rowOffset;
  10. int[] m_cellOffset;
  11. //List<int> m_cellOffset;
  12. int m_streamOffset;
  13. public int[] CellOffsets
  14. //public List<int> CellOffsets
  15. {
  16. internal set
  17. {
  18. m_cellOffset = value;
  19. m_dbcell.CellOffsets = value;
  20. }
  21. get { return m_cellOffset; }
  22. }
  23. public DBCell()
  24. {
  25. m_dbcell = new Biff8Excel.Records.DBCell();
  26. }
  27. public uint RowOffset
  28. {
  29. set
  30. {
  31. m_rowOffset = value;
  32. m_dbcell.RowOffset = value;
  33. }
  34. get
  35. {
  36. return m_rowOffset;
  37. }
  38. }
  39. internal int StreamOffset
  40. {
  41. set { m_streamOffset = value; }
  42. get { return m_streamOffset; }
  43. }
  44. internal byte[] WriteRecord()
  45. {
  46. return m_dbcell.GetByte();
  47. }
  48. #region IDisposable ³ÉÔ±
  49. public void Dispose()
  50. {
  51. m_dbcell = null;
  52. }
  53. #endregion
  54. }
  55. }