[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

ImportFlags

Enum Class ImportFlags

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

public enum ImportFlags extends Enum<ImportFlags>
指定打开工作簿时导入工作表的哪些部分。

将此枚举与 XlsxOpenOptions.setImportFlags(EnumSet) 及类似的打开选项 API 一起使用,可以将导入内容限制为特定的工作表方面,例如单元格数据、公式、样式、表、合并单元格或形状。将多个值组合在 EnumSet 中,可以同时导入多个方面。


 XlsxOpenOptions options = new XlsxOpenOptions();
 options.setImportFlags(EnumSet.of(ImportFlags.Data, ImportFlags.Formulas));
 EnumSet<ImportFlags> importFlags = options.getImportFlags();
 
  • Enum Constant Details

    • Data

      public static final ImportFlags Data
      从工作表中导入单元格值。
    • Formulas

      public static final ImportFlags Formulas
      从工作表中导入公式及其单元格值。
    • Table

      public static final ImportFlags Table
      读取表格。
    • MergeArea

      public static final ImportFlags MergeArea
      从工作表中导入合并单元格区域。
    • Style

      public static final ImportFlags Style
      读取样式。
    • ConditionalFormatting

      public static final ImportFlags ConditionalFormatting
      从工作表中导入条件格式。
    • DataValidation

      public static final ImportFlags DataValidation
      从工作表中导入数据验证设置。
    • PivotTable

      public static final ImportFlags PivotTable
      读取透视表。
    • Shapes

      public static final ImportFlags Shapes
      读取所有形状。
  • Method Details

    • values

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