📄 sclrecord.cs
字号:
using System;
using Microsoft.Fawvw.Components.NExcel.Biff;
namespace Microsoft.Fawvw.Components.NExcel.Read.Biff
{
/// <summary> Class containing the zoom factor for display</summary>
class SCLRecord:RecordData
{
/// <summary> Accessor for the zoom factor
///
/// </summary>
/// <returns> the zoom factor as the nearest integer percentage
/// </returns>
virtual public int ZoomFactor
{
get
{
return numerator * 100 / denominator;
}
}
/// <summary> The numerator of the zoom</summary>
private int numerator;
/// <summary> The denominator of the zoom</summary>
private int denominator;
/// <summary> Constructs this record from the raw data</summary>
/// <param name="r">the record
/// </param>
protected internal SCLRecord(Record r):base(Microsoft.Fawvw.Components.NExcel.Biff.Type.SCL)
{
sbyte[] data = r.Data;
numerator = IntegerHelper.getInt(data[0], data[1]);
denominator = IntegerHelper.getInt(data[2], data[3]);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -