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