[]
Serializable, Comparable<ContainsOperator>, ConstableFormatConditionType.TextString条件格式规则使用的文本匹配运算符。将此枚举与 IFormatCondition.setTextOperator(ContainsOperator)结合使用,可以控制规则是检查单元格文本是否包含、不包含、开头为或结尾为指定文本。
worksheet.getRange("A1:A4").setValue(new Object[][] {{"Apple"}, {"Pear"}, {"Apricot"}, {"Plum"}});
IFormatCondition condition = (IFormatCondition) worksheet.getRange("A1:A4").getFormatConditions().add(FormatConditionType.TextString);
condition.setText("Ap");
condition.setTextOperator(ContainsOperator.BeginsWith);
Enum.EnumDesc<E extends Enum<E>>static ContainsOperatorstatic ContainsOperator[]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