horizontalpagebreaksrecord.cs
来自「Excel的操作,其中可以读取及写入Excel 文件」· CS 代码 · 共 82 行
CS
82 行
using System;
using Microsoft.Fawvw.Components.NExcel.Biff;
namespace Microsoft.Fawvw.Components.NExcel.Read.Biff
{
/// <summary> Contains the cell dimensions of this worksheet</summary>
class HorizontalPageBreaksRecord:RecordData
{
/// <summary> Gets the row breaks
///
/// </summary>
/// <returns> the row breaks on the current sheet
/// </returns>
virtual public int[] RowBreaks
{
get
{
return rowBreaks;
}
}
/// <summary> The row page breaks</summary>
private int[] rowBreaks;
/// <summary> Dummy indicators for overloading the constructor</summary>
public class Biff7
{
}
public static Biff7 biff7;
/// <summary> Constructs the dimensions from the raw data
///
/// </summary>
/// <param name="t">the raw data
/// </param>
public HorizontalPageBreaksRecord(Record t):base(t)
{
sbyte[] data = t.Data;
int numbreaks = IntegerHelper.getInt(data[0], data[1]);
int pos = 2;
rowBreaks = new int[numbreaks];
for (int i = 0; i < numbreaks; i++)
{
rowBreaks[i] = IntegerHelper.getInt(data[pos], data[pos + 1]);
pos += 6;
}
}
/// <summary> Constructs the dimensions from the raw data
///
/// </summary>
/// <param name="t">the raw data
/// </param>
/// <param name="biff7">an indicator to initialise this record for biff 7 format
/// </param>
public HorizontalPageBreaksRecord(Record t, Biff7 biff7):base(t)
{
sbyte[] data = t.Data;
int numbreaks = IntegerHelper.getInt(data[0], data[1]);
int pos = 2;
rowBreaks = new int[numbreaks];
for (int i = 0; i < numbreaks; i++)
{
pos += 2;
rowBreaks[i] = IntegerHelper.getInt(data[pos], data[pos + 1]);
}
}
static HorizontalPageBreaksRecord()
{
biff7 = new Biff7();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?