[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(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>
指定分页是按水平方向还是垂直方向计算。

将此枚举与 PrintManager.GetPaginationInfo(IWorksheet,PaginationOrientation) 配合使用,可以选择页面边界是作为水平分页的列索引返回,还是作为垂直分页的行索引返回。分页基于当前工作表的页面设置。


 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)