[]
        
立即试用
(Showing Draft Content)

CalcError

Enum Class CalcError

java.lang.Object
java.lang.Enum<CalcError>
com.grapecity.documents.excel.CalcError
All Implemented Interfaces:
Serializable, Comparable<CalcError>, Constable

public enum CalcError extends Enum<CalcError>
指定计算误差。
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    表示连接被阻止或无法建立。
    表示一个单元格正在计算异步公式。
    发生计算引擎遇到当前不支持的场景时。
    表示连接失败或无法建立。
    当公式尝试除以零时发生。
    表示在获取数据时发生了错误。
    表示一个值对公式不可用。
    发生此情况是因为Excel无法识别公式名称或在公式中的文本。
    指定无错误。
    发生当你引用两个不相交的范围的交集时。
    发生当Excel遇到一个无效的数字时。
    当公式包含无效的单元格引用时发生。
    指出了一个公式返回多个结果,但无法将这些值返回到相邻的单元格。
    如果在您的公式中有一个变量类型不正确(例如,预期是数值时却提供了文本值),则会出现此情况。
  • Method Summary

    Modifier and Type
    Method
    Description
    static CalcError
    forValue(int value)
    根据指定的整数值获取对应的枚举常量。
    int
    获取表示枚举常量的整数值。
    static CalcError
    Returns the enum constant of this class with the specified name.
    static CalcError[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • None

      public static final CalcError None
      指定无错误。
    • Null

      public static final CalcError Null
      发生当你引用两个不相交的范围的交集时。
    • Div0

      public static final CalcError Div0
      当公式尝试除以零时发生。
    • Value

      public static final CalcError Value
      如果在您的公式中有一个变量类型不正确(例如,预期是数值时却提供了文本值),则会出现此情况。
    • Ref

      public static final CalcError Ref
      当公式包含无效的单元格引用时发生。
    • Name

      public static final CalcError Name
      发生此情况是因为Excel无法识别公式名称或在公式中的文本。
    • Num

      public static final CalcError Num
      发生当Excel遇到一个无效的数字时。
    • NA

      public static final CalcError NA
      表示一个值对公式不可用。
    • GettingData

      public static final CalcError GettingData
      表示在获取数据时发生了错误。
    • Spill

      public static final CalcError Spill
      指出了一个公式返回多个结果,但无法将这些值返回到相邻的单元格。
    • Calc

      public static final CalcError Calc
      发生计算引擎遇到当前不支持的场景时。
    • Busy

      public static final CalcError Busy
      表示一个单元格正在计算异步公式。
    • Connect

      public static final CalcError Connect
      表示连接失败或无法建立。
    • Blocked

      public static final CalcError Blocked
      表示连接被阻止或无法建立。
  • Method Details

    • values

      public static CalcError[] 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

      public static CalcError valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      获取表示枚举常量的整数值。
      Returns:
      枚举常量的序数值。
    • forValue

      public static CalcError forValue(int value)
      根据指定的整数值获取对应的枚举常量。
      Parameters:
      value - 表示枚举常量的整数值。
      Returns:
      CalcError 枚举常量。