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

SummaryRow

Enum Class SummaryRow

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

public enum SummaryRow extends Enum<SummaryRow>
指定大纲中汇总行的位置。

在工作表中对行进行分组时,会为每个组自动创建一个汇总行。此枚举控制汇总行位于大纲中的明细行上方还是下方。


 worksheet.getOutline().setSummaryRow(SummaryRow.Above);
 worksheet.getRange("5:20").group();
 
  • Enum Constant Details

    • Below

      public static final SummaryRow Below
      指定汇总行位于大纲中明细行下方。
    • Above

      public static final SummaryRow Above
      指定汇总行位于大纲中明细行上方。
  • Method Details

    • values

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