⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formulaexception.cs

📁 Excel的操作,其中可以读取及写入Excel 文件
💻 CS
字号:
using System;

namespace Microsoft.Fawvw.Components.NExcel.Biff.Formula
{
	
	/// <summary> Exception thrown when parsing a formula</summary>
	public class FormulaException:JXLException
	{
		public class FormulaMessage
		{
			/// <summary> The message</summary>
			public string message;
			/// <summary> Constructs this exception with the specified message
			/// 
			/// </summary>
			/// <param name="m">the message
			/// </param>
			internal FormulaMessage(string m)
			{
				message = m;
			}
		}
		
		
		internal static FormulaMessage unrecognizedToken;
		
		
		internal static FormulaMessage unrecognizedFunction;
		
		
		internal static FormulaMessage biff8Supported;
		
		internal static FormulaMessage lexicalError;
		
		internal static FormulaMessage incorrectArguments;
		
		internal static FormulaMessage sheetRefNotFound;
		
		internal static FormulaMessage cellNameNotFound;
		
		
		/// <summary> Constructs this exception with the specified message
		/// 
		/// </summary>
		/// <param name="m">the message
		/// </param>
		public FormulaException(FormulaMessage m):base(m.message)
		{
		}
		
		/// <summary> Constructs this exception with the specified message
		/// 
		/// </summary>
		/// <param name="m">the message
		/// </param>
		public FormulaException(FormulaMessage m, int val):base(m.message + " " + val)
		{
		}
		
		/// <summary> Constructs this exception with the specified message
		/// 
		/// </summary>
		/// <param name="m">the message
		/// </param>
		public FormulaException(FormulaMessage m, string val):base(m.message + " " + val)
		{
		}
		static FormulaException()
		{
			unrecognizedToken = new FormulaMessage("Unrecognized token");
			unrecognizedFunction = new FormulaMessage("Unrecognized function");
			biff8Supported = new FormulaMessage("Only biff8 formulas are supported");
			lexicalError = new FormulaMessage("Lexical error:  ");
			incorrectArguments = new FormulaMessage("Incorrect arguments supplied to function");
			sheetRefNotFound = new FormulaMessage("Could not find sheet");
			cellNameNotFound = new FormulaMessage("Could not find named cell");
		}
	}
}

⌨️ 快捷键说明

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