📄 protectrecord.cs
字号:
using System;
using Microsoft.Fawvw.Components.NExcel.Biff;
namespace Microsoft.Fawvw.Components.NExcel.Read.Biff
{
/// <summary> A record detailing whether the sheet is protected</summary>
class ProtectRecord:RecordData
{
/// <summary> Returns the protected flag
///
/// </summary>
/// <returns> TRUE if this is protected, FALSE otherwise
/// </returns>
virtual internal bool IsProtected()
{
return prot;
}
/// <summary> Protected flag</summary>
private bool prot;
/// <summary> Constructs this object from the raw data
///
/// </summary>
/// <param name="t">the raw data
/// </param>
internal ProtectRecord(Record t):base(t)
{
sbyte[] data = getRecord().Data;
int protflag = IntegerHelper.getInt(data[0], data[1]);
prot = (protflag == 1);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -