[]
        
(Showing Draft Content)

GC.Spread.Sheets.ConditionalFormatting.DateCompareType

枚举: DateCompareType

Sheets.ConditionalFormatting.DateCompareType

日期比较类型

代码示例

//本示例验证单元格数据
var nCondition = new GC.Spread.Sheets.ConditionalFormatting.Condition(GC.Spread.Sheets.ConditionalFormatting.ConditionType.dateCondition, {compareType: GC.Spread.Sheets.ConditionalFormatting.DateCompareType.before, expected: new Date(2012, 11, 31)});
var validator = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(nCondition);
validator.type(GC.Spread.Sheets.DataValidation.CriteriaType.custom);
activeSheet.getCell(0, 0, GC.Spread.Sheets.SheetArea.viewport).validator(validator);
spread.options.highlightInvalidData = true;
activeSheet.setValue(0, 0, new Date(2012, 12, 12));

Table of contents

枚举值成员

枚举值成员

after

after = 4

日期时间是否在某个时间之后


afterEqualsTo

afterEqualsTo = 5

日期时间是否在某个时间之后或等于某个时间


before

before = 2

日期时间是否在某个时间之前


beforeEqualsTo

beforeEqualsTo = 3

日期时间是在某个时间之前还是等于某个时间


equalsTo

equalsTo = 0

日期时间是否等于某个时间


notEqualsTo

notEqualsTo = 1

日期时间是否不等于某个时间