[]
        
立即试用
(Showing Draft Content)

ValueQuoteType

Enum Class ValueQuoteType

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

public enum ValueQuoteType extends Enum<ValueQuoteType>
获取或设置导出文本文件中值的引用方式。
  • 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
    所有值都将始终被引用。
    仅在需要时引用值。例如,如果一个值包含引号但引号不在该值的开始位置,则不会引用该值。
    所有值都不会被引号括起来。由于缺少必要的引号,这种类型的导出文本文件可能无法正确读取。
    所有包含特殊字符(如引号、分隔符)的值都将被引用。这与Microsoft Excel导出文本文件时的行为相同。
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    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

    • Normal

      public static final ValueQuoteType Normal
      所有包含特殊字符(如引号、分隔符)的值都将被引用。这与Microsoft Excel导出文本文件时的行为相同。
    • Always

      public static final ValueQuoteType Always
      所有值都将始终被引用。
    • Minimum

      public static final ValueQuoteType Minimum
      仅在需要时引用值。例如,如果一个值包含引号但引号不在该值的开始位置,则不会引用该值。
    • Never

      public static final ValueQuoteType Never
      所有值都不会被引号括起来。由于缺少必要的引号,这种类型的导出文本文件可能无法正确读取。
  • Method Details

    • values

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