[]
Serializable, Comparable<ValidationOperator>, ConstableBetween 和 NotBetween,则用于比较两个公式。将此枚举与 IValidation 一起使用,以定义验证规则如何计算输入。Between 和 NotBetween 需要两个公式参数,而其他运算符只使用第一个公式。
IRange range = worksheet.getRange("A1");
range.getValidation().add(
ValidationType.Whole, ValidationAlertStyle.Stop, ValidationOperator.Between, 1, 10);
Enum.EnumDesc<E extends Enum<E>>static ValidationOperatorstatic ValidationOperator[]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