[]
Serializable, Comparable<ConsolidationFunction>, Constable使用此枚举可控制 IRange.subtotal(int,ConsolidationFunction,int[]) 和数据透视表数据字段等功能中值的汇总方式。
Object[][] sourceData = {
{"Region", "Amount"},
{"East", 120},
{"East", 80},
{"West", 90}
};
worksheet.getRange("A1:B4").setValue(sourceData);
worksheet.getRange("A1:B4").subtotal(1, ConsolidationFunction.Sum, new int[] {2});
Enum.EnumDesc<E extends Enum<E>>static ConsolidationFunctionstatic ConsolidationFunction[]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