[]
        
立即试用
(Showing Draft Content)

PasteType

Enum Class PasteType

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

public enum PasteType extends Enum<PasteType>
指定粘贴的类型。
  • Enum Constant Details

    • Values

      public static final PasteType Values
      指定仅粘贴单元格值。
    • Formulas

      public static final PasteType Formulas
      指定仅粘贴单元格公式。
    • Formats

      public static final PasteType Formats
      指定仅粘贴格式。
    • NumberFormats

      public static final PasteType NumberFormats
      指定仅粘贴数字格式。
    • ColumnWidths

      public static final PasteType ColumnWidths
      指定仅粘贴列宽。
    • RowHeights

      public static final PasteType RowHeights
      指定仅粘贴行高。
  • Field Details

    • Default

      public static final EnumSet<PasteType> Default
      指定粘贴除行高和列宽之外的所有数据。
  • Method Details

    • values

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