LMargin.cs 828 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 RecordLMargin
  10. {
  11. public ushort opcode;
  12. public ushort length;
  13. public double value;
  14. }
  15. internal class LMargin : IRecords
  16. {
  17. RecordLMargin lmargin;
  18. public LMargin()
  19. {
  20. lmargin.opcode = 0x26;
  21. lmargin.length = 0x8;
  22. }
  23. public double Value
  24. {
  25. set { lmargin.value = value; }
  26. }
  27. #region IRecords ³ÉÔ±
  28. public byte[] GetByte()
  29. {
  30. return Globals.GetStructToBytes(lmargin);
  31. }
  32. #endregion
  33. }
  34. }