[]
Serializable, Comparable<PivotFieldOrientation>, ConstableUse this enum with IPivotField.setOrientation(PivotFieldOrientation) to place a pivot field in the row area, column area, page area, data area, or to hide the field.
Object[][] sourceData = {
{"Product", "Region", "Amount"},
{"Apple", "East", 120},
{"Apple", "West", 80},
{"Orange", "East", 90}
};
worksheet.getRange("A1:C4").setValue(sourceData);
IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C4"));
IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
Enum.EnumDesc<E extends Enum<E>>static PivotFieldOrientationstatic PivotFieldOrientation[]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