[]
Serializable, Comparable<PaginationOrientation>, Constable将此枚举与 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.EnumDesc<E extends Enum<E>>static PaginationOrientationforValue(int value) intgetValue()static PaginationOrientationstatic PaginationOrientation[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null