footerrecord.cs
来自「Excel的操作,其中可以读取及写入Excel 文件」· CS 代码 · 共 91 行
CS
91 行
using System;
using Microsoft.Fawvw.Components.NExcel.Biff;
namespace Microsoft.Fawvw.Components.NExcel.Read.Biff
{
/// <summary> A workbook page footer record</summary>
public class FooterRecord:RecordData
{
/// <summary> Gets the footer string
///
/// </summary>
/// <returns> the footer string
/// </returns>
virtual internal string Footer
{
get
{
return footer;
}
}
/// <summary> The footer</summary>
private string footer;
/// <summary> Dummy indicators for overloading the constructor</summary>
public class Biff7
{
}
public static Biff7 biff7;
/// <summary> Constructs this object from the raw data
///
/// </summary>
/// <param name="t">the record data
/// </param>
/// <param name="ws">the workbook settings
/// </param>
internal FooterRecord(Record t, WorkbookSettings ws):base(t)
{
sbyte[] data = getRecord().Data;
if (data.Length == 0)
{
return ;
}
int chars = IntegerHelper.getInt(data[0], data[1]);
bool unicode = data[2] == 1;
if (unicode)
{
footer = StringHelper.getUnicodeString(data, chars, 3);
}
else
{
footer = StringHelper.getString(data, chars, 3, ws);
}
}
/// <summary> Constructs this object from the raw data
///
/// </summary>
/// <param name="t">the record data
/// </param>
/// <param name="ws">the workbook settings
/// </param>
/// <param name="dummy">dummy record to indicate a biff7 document
/// </param>
internal FooterRecord(Record t, WorkbookSettings ws, Biff7 dummy):base(t)
{
sbyte[] data = getRecord().Data;
if (data.Length == 0)
{
return ;
}
int chars = data[0];
footer = StringHelper.getString(data, chars, 1, ws);
}
static FooterRecord()
{
biff7 = new Biff7();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?