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 RecordWSBool { public ushort opcode; public ushort length; public ushort options; } internal class WSBool : IRecords { RecordWSBool wsbool; public WSBool() { wsbool.opcode = 0x81; wsbool.length = 0x2; } public ushort Options { set { wsbool.options = value; } } #region IRecords ³ΙΤ± public byte[] GetByte() { return Globals.GetStructToBytes(wsbool); } #endregion } }