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 RecordBMargin { public ushort opcode; // = 0x29; public ushort length; // = 0x8; public double value; } internal class BMargin : IRecords { RecordBMargin bmargin; public BMargin() { bmargin.opcode = 0x29; bmargin.length = 0x8; } public double Value { set { bmargin.value = value; } } #region IRecords ³ΙΤ± public byte[] GetByte() { return Globals.GetStructToBytes(bmargin); } #endregion } }