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 RecordSupBook { public ushort opcode; public ushort length; public ushort numsheets; public ushort field; } internal class SupBook : IRecords { RecordSupBook supbook; public SupBook() { supbook.opcode = 0x1AE; supbook.field = 0x401; supbook.length = 0x4; } public ushort TotalSheets { set { supbook.numsheets = value; } } #region IRecords ³ΙΤ± public byte[] GetByte() { return Globals.GetStructToBytes(supbook); } #endregion } }