12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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 RecordDefaultRowHeight
- {
- public ushort opcode; //0x225
- public ushort length; //0x4
- public ushort flags;
- public ushort height;
- }
- //0 0001H 1 = Row height and default font height do not match
- //1 0002H 1 = Row is hidden
- //2 0004H 1 = Additional space above the row
- //3 0008H 1 = Additional space below the row
- [FlagsAttribute]
- enum EnumDefaultRowFlags :ushort
- {
- NotMatch = 0x1,
- Hidden = 0x2,
- SpaceAbove = 0x4,
- SpaceBelow = 0x8,
- }
- public class DefaultRowHeight: IRecords
- {
- RecordDefaultRowHeight defaultRowHeight;
- public DefaultRowHeight()
- {
- defaultRowHeight.opcode = 0x225;
- defaultRowHeight.length = 0x4;
- defaultRowHeight.flags = (ushort)EnumDefaultRowFlags.NotMatch;
- defaultRowHeight.height = 0x8000;
- }
- #region IRecords ³ÉÔ±
- public byte[] GetByte()
- {
- return Globals.GetStructToBytes(defaultRowHeight);
- }
- #endregion
- }
- }
|