Enum Class CalcError

java.lang.Object
java.lang.Enum<CalcError>
com.grapecity.documents.excel.CalcError
所有已实现的接口:
Serializable, Comparable<CalcError>, Constable

public enum CalcError extends Enum<CalcError>
Specifies the calculation error.
  • 枚举常量详细资料

    • None

      public static final CalcError None
      Specifies no error.
    • Null

      public static final CalcError Null
      Occurs when you refer to an intersection of two ranges that do not intersect.
    • Div0

      public static final CalcError Div0
      Occurs when a formula attempts to divide by zero.
    • Value

      public static final CalcError Value
      Occurs if one of the variables in your formula is of the wrong type (e.g. text value when a numeric value is expected).
    • Ref

      public static final CalcError Ref
      Occurs when a formula contains an invalid cell reference.
    • Name

      public static final CalcError Name
      Occurs if Excel does not recognise a formula name or does not recognise text within a formula.
    • Num

      public static final CalcError Num
      Occurs when Excel encounters an invalid number.
    • NA

      public static final CalcError NA
      Indicates that a value is not available to a formula.
    • GettingData

      public static final CalcError GettingData
    • Spill

      public static final CalcError Spill
    • Calc

      public static final CalcError Calc
  • 方法详细资料

    • values

      public static CalcError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getValue

      public int getValue()
    • forValue

      public static CalcError forValue(int value)