1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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 RecordTMargin
- {
- public ushort opcode;
- public ushort length;
- public double value;
- }
- internal class TMargin : IRecords
- {
- RecordTMargin tmargin;
- public TMargin()
- {
- tmargin.opcode = 0x28;
- tmargin.length = 0x8;
- }
- public double Value
- {
- set { tmargin.value = value; }
- }
- #region IRecords ³ÉÔ±
- public byte[] GetByte()
- {
- return Globals.GetStructToBytes(tmargin);
- }
- #endregion
- }
- }
|