sclrecord.cs

来自「Excel的操作,其中可以读取及写入Excel 文件」· CS 代码 · 共 43 行

CS
43
字号
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 + =
减小字号Ctrl + -
显示快捷键?