[]
        
(Showing Draft Content)

PaginationOrientation

Enum Class PaginationOrientation

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

public enum PaginationOrientation extends Enum<PaginationOrientation>
Specifies whether pagination is calculated horizontally or vertically.

Use this enum with PrintManager.GetPaginationInfo(IWorksheet,PaginationOrientation) to choose whether page boundaries are returned as column indexes for horizontal paging or row indexes for vertical paging. Pagination is based on the current worksheet page setup.


 worksheet.getRange("A1:C6").setValue(new Object[][] {
     {"Name", "Q1", "Q2"},
     {"North", 100, 120},
     {"South", 90, 110}
 });
 PrintManager printManager = new PrintManager();
 Object pageBreaks = printManager.GetPaginationInfo(worksheet, PaginationOrientation.Horizontal);
 
  • Enum Constant Details

  • Method Details

    • values

      public static PaginationOrientation[] 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 PaginationOrientation 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
    • getValue

      public int getValue()
    • forValue

      public static PaginationOrientation forValue(int value)