[]
Sheets.ConditionalFormatting.CustomValueType
自定义值类型
代码示例
var nCondition = new GC.Spread.Sheets.ConditionalFormatting.Condition(GC.Spread.Sheets.ConditionalFormatting.ConditionType.formulaCondition, {compareType: GC.Spread.Sheets.ConditionalFormatting.CustomValueType.nonEmpty});
var validator = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(nCondition);
validator.ignoreBlank(false);
activeSheet.getCell(0, 0, GC.Spread.Sheets.SheetArea.viewport).validator(validator);
spread.options.highlightInvalidData = true;
• empty = 0
单元格值是否为empty还是null
• error = 2
单元格值是否包含计算错误
• formula = 4
单元格值是否为公式
• nonEmpty = 1
单元格值是否不为empty或null
• nonError = 3
单元格值是否不包含计算错误