defaultrowheightrecord.cs

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

CS
43
字号
using System;

using Microsoft.Fawvw.Components.NExcel.Biff;

namespace Microsoft.Fawvw.Components.NExcel.Read.Biff
{
	
	/// <summary> Contains the default column width for cells in this sheet</summary>
	class DefaultRowHeightRecord:RecordData
	{
		/// <summary> Accessor for the default height
		/// 
		/// </summary>
		/// <returns> the height
		/// </returns>
		virtual public int Height
		{
			get
			{
				return height;
			}
			
		}
		/// <summary> The default row height, in 1/20ths of a point</summary>
		private int height;
		
		/// <summary> Constructs the def col width from the raw data
		/// 
		/// </summary>
		/// <param name="t">the raw data
		/// </param>
		public DefaultRowHeightRecord(Record t):base(t)
		{
			sbyte[] data = t.Data;
			
			if (data.Length > 2)
			{
				height = IntegerHelper.getInt(data[2], data[3]);
			}
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?