Package com.grapecity.documents.excel
Enum Class CalcError
- All Implemented Interfaces:
Serializable,Comparable<CalcError>,Constable
指定计算误差。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription表示连接被阻止或无法建立。表示一个单元格正在计算异步公式。发生计算引擎遇到当前不支持的场景时。表示连接失败或无法建立。当公式尝试除以零时发生。表示在获取数据时发生了错误。表示一个值对公式不可用。发生此情况是因为Excel无法识别公式名称或在公式中的文本。指定无错误。发生当你引用两个不相交的范围的交集时。发生当Excel遇到一个无效的数字时。当公式包含无效的单元格引用时发生。指出了一个公式返回多个结果,但无法将这些值返回到相邻的单元格。如果在您的公式中有一个变量类型不正确(例如,预期是数值时却提供了文本值),则会出现此情况。 -
Method Summary
Modifier and TypeMethodDescriptionstatic CalcErrorforValue(int value) 根据指定的整数值获取对应的枚举常量。intgetValue()获取表示枚举常量的整数值。static CalcErrorReturns the enum constant of this class with the specified name.static CalcError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
指定无错误。 -
Null
发生当你引用两个不相交的范围的交集时。 -
Div0
当公式尝试除以零时发生。 -
Value
如果在您的公式中有一个变量类型不正确(例如,预期是数值时却提供了文本值),则会出现此情况。 -
Ref
当公式包含无效的单元格引用时发生。 -
Name
发生此情况是因为Excel无法识别公式名称或在公式中的文本。 -
Num
发生当Excel遇到一个无效的数字时。 -
NA
表示一个值对公式不可用。 -
GettingData
表示在获取数据时发生了错误。 -
Spill
指出了一个公式返回多个结果,但无法将这些值返回到相邻的单元格。 -
Calc
发生计算引擎遇到当前不支持的场景时。 -
Busy
表示一个单元格正在计算异步公式。 -
Connect
表示连接失败或无法建立。 -
Blocked
表示连接被阻止或无法建立。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()获取表示枚举常量的整数值。- Returns:
- 枚举常量的序数值。
-
forValue
根据指定的整数值获取对应的枚举常量。- Parameters:
value- 表示枚举常量的整数值。- Returns:
- CalcError 枚举常量。
-