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 RecordDefaultColWidth { public ushort opcode; //0x55 public ushort length; //0x2 public ushort width; //0xA; } internal class DefaultColWidth : IRecords { RecordDefaultColWidth defaultcolwidth; public DefaultColWidth() { defaultcolwidth.opcode = 0x55; defaultcolwidth.length = 0x2; //The default width of 8 set in this record results in a column width of 8.43 using Arial font with a size of 10 points. defaultcolwidth.width = 0xA; } #region IRecords ³ΙΤ± public byte[] GetByte() { return Globals.GetStructToBytes(defaultcolwidth); } #endregion } }