msodrawingrecord.cs

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

CS
58
字号
using System;

using Microsoft.Fawvw.Components.NExcel.Biff;
using Microsoft.Fawvw.Components.NExcel.Read.Biff;

namespace Microsoft.Fawvw.Components.NExcel.Biff.Drawing
{
	
	/// <summary> A record which merely holds the MSODRAWING data.  Used when copying files
	/// which contain images
	/// </summary>
	public class MsoDrawingRecord:WritableRecordData
	{
		/// <summary> The raw drawing data which was read in</summary>
		private sbyte[] data;
		
		/// <summary> Constructs this object from the raw data
		/// 
		/// </summary>
		/// <param name="t">the raw data
		/// </param>
		public MsoDrawingRecord(Record t):base(t)
		{
			data = getRecord().Data;
		}
		
		/// <summary> Constructor
		/// 
		/// </summary>
		/// <param name="d">the drawing data
		/// </param>
		public MsoDrawingRecord(sbyte[] d):base(Microsoft.Fawvw.Components.NExcel.Biff.Type.MSODRAWING)
		{
			data = d;
		}
		
		/// <summary> Expose the protected function to the SheetImpl in this package
		/// 
		/// </summary>
		/// <returns> the raw record data
		/// </returns>
		public override sbyte[] getData()
		{
			return data;
		}
		
		/// <summary> Expose the protected function to the SheetImpl in this package
		/// 
		/// </summary>
		/// <returns> the raw record data
		/// </returns>
		public override Record getRecord()
		{
			return base.getRecord();
		}
	}
}

⌨️ 快捷键说明

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