123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- 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 RecordRK
- {
- public ushort opcode;
- public ushort length;
- public ushort row;
- public ushort col;
- public ushort xf;
- public uint rk;
- }
- internal class RK : IRecords
- {
- RecordRK rk;
- public RK()
- {
- rk.opcode = 0x27E;
- rk.length = 0xA;
- }
- public ushort Row
- {
- set { rk.row = value; }
- }
- public ushort Column
- {
- set { rk.col = value; }
- }
- public ushort CellStyle
- {
- set { rk.xf = value; }
- }
- public uint Value
- {
- set
- {
- rk.rk = (value << 2) | 0x2;
- //rk.rk |= 0x2;
- }
- }
- #region IRecords ³ÉÔ±
- public byte[] GetByte()
- {
- return Globals.GetStructToBytes(rk);
- }
- #endregion
- }
- }
|