BMargin.cs 865 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Runtime.InteropServices;
  5. using Biff8Excel.Interfaces;
  6. namespace Biff8Excel.Records
  7. {
  8. [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 1)]
  9. struct RecordBMargin
  10. {
  11. public ushort opcode; // = 0x29;
  12. public ushort length; // = 0x8;
  13. public double value;
  14. }
  15. internal class BMargin : IRecords
  16. {
  17. RecordBMargin bmargin;
  18. public BMargin()
  19. {
  20. bmargin.opcode = 0x29;
  21. bmargin.length = 0x8;
  22. }
  23. public double Value
  24. {
  25. set { bmargin.value = value; }
  26. }
  27. #region IRecords ³ÉÔ±
  28. public byte[] GetByte()
  29. {
  30. return Globals.GetStructToBytes(bmargin);
  31. }
  32. #endregion
  33. }
  34. }