[]
Serializable, Comparable<TimePeriods>, Constable将此枚举与 IFormatCondition.setDateOperator(TimePeriods) 一起用于 FormatConditionType.TimePeriod 规则,以指示规则应计算的相对日期区域,例如今天、上周或下个月。
IFormatCondition condition = (IFormatCondition) worksheet.getRange("A1:A5")
.getFormatConditions().add(FormatConditionType.TimePeriod, FormatConditionOperator.None, null, null);
condition.setDateOperator(TimePeriods.Today);
Enum.EnumDesc<E extends Enum<E>>static TimePeriodsstatic TimePeriods[]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