1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- 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 RecordWindows2
- {
- public ushort opcode;
- public ushort length;
- public ushort optionflags;
- public ushort firstvisiblerow;
- public ushort firstvisiblecol;
- public ushort gridlinecolourindex;
- public ushort notused;
- public ushort cached1;
- public ushort cached2;
- public uint notused2;
- }
- internal class Windows2 : IRecords
- {
- RecordWindows2 windows2;
- public Windows2()
- {
- windows2.opcode = 0x23E;
- windows2.length = 0x12;
- windows2.notused = 0x0;
- windows2.notused2 = 0x0;
- windows2.cached1 = 0x0;
- windows2.cached2 = 0x0;
- }
- //public ushort ID
- //{
- // get { return windows2.opcode; }
- //}
- //public ushort RecordSize
- //{
- // get { return 22; }
- //}
- public ushort OptionalFlags
- {
- set { windows2.optionflags = value; }
- }
- public ushort FirstVisibleRow
- {
- set { windows2.firstvisiblerow = value; }
- }
- public ushort FirstVisibleColumn
- {
- set { windows2.firstvisiblecol = value; }
- }
-
- public ushort GridLineColour
- {
- set { windows2.gridlinecolourindex = value; }
- }
- #region IRecords ³ÉÔ±
- public byte[] GetByte()
- {
- return Globals.GetStructToBytes(windows2);
- }
- #endregion
- }
- }
|