[]
        
(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>
Gets or sets how to quote values in the exported text file.
  • Enum Constant Details

    • Normal

      public static final ValueQuoteType Normal
      All values that contain special characters such as quotation mark, separator character will be quoted. Same with the behavior of ms excel for exporting text file.
    • Always

      public static final ValueQuoteType Always
      All values will be quoted always.
    • Minimum

      public static final ValueQuoteType Minimum
      Only quote values when needed. Such as, if one value contains quotation mark but the quotation mark is not at the begin of this value, this value will not be quoted.
    • Never

      public static final ValueQuoteType Never
      All values will not be quoted. The exported text file with this type may not be read back correctly because the needed quotation marks being absent.
  • 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