[]
        
(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>
Specifies the position of the summary row in an outline.

When rows are grouped in a worksheet, a summary row is automatically created for each group. This enum controls whether the summary row is positioned above or below the detail rows in the outline.


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

    • Below

      public static final SummaryRow Below
      Specifies that the summary row is positioned below the detail rows in the outline.
    • Above

      public static final SummaryRow Above
      Specifies that the summary row is positioned above the detail rows in the outline.
  • 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