123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Runtime.InteropServices;
- using Biff8Excel.Interfaces;
- namespace Biff8Excel.Records
- {
- [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 1)]
- struct RecordLMargin
- {
- public ushort opcode;
- public ushort length;
- public double value;
- }
- internal class LMargin : IRecords
- {
- RecordLMargin lmargin;
- public LMargin()
- {
- lmargin.opcode = 0x26;
- lmargin.length = 0x8;
- }
- public double Value
- {
- set { lmargin.value = value; }
- }
- #region IRecords ³ÉÔ±
- public byte[] GetByte()
- {
- return Globals.GetStructToBytes(lmargin);
- }
- #endregion
- }
- }
|