[]
Serializable, Comparable<DynamicFilterType>, Constable使用此枚举可以为日期相关期间、特定月份或季度、或高于平均值和低于平均值的值定义动态筛选条件。它通常与 AutoFilterOperator.Dynamic 一起传递给 IRange.autoFilter(int,Object,AutoFilterOperator)。
IRange range = worksheet.getRange("A1:C4");
range.setValue(new Object[][] {
{"Name", "Date", "Value"},
{"Alice", new GregorianCalendar(2024, 1, 5), 100},
{"Bob", new GregorianCalendar(2024, 2, 8), 200},
{"Carol", new GregorianCalendar(2024, 1, 20), 150}
});
range.autoFilter(1, DynamicFilterType.M2, AutoFilterOperator.Dynamic);
Enum.EnumDesc<E extends Enum<E>>static DynamicFilterTypestatic DynamicFilterType[]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