[]
        
(Showing Draft Content)

GC.Spread.Sheets.ConditionalFormatting.DateOccurringType

枚举: DateOccurringType

Sheets.ConditionalFormatting.DateOccurringType

日期发生的类型

代码示例

//本示例创建一个规则
var style = new GC.Spread.Sheets.Style();
style.backColor = "red";
var rule = new GC.Spread.Sheets.ConditionalFormatting.NormalConditionRule(GC.Spread.Sheets.ConditionalFormatting.RuleType.dateOccurringRule, [new GC.Spread.Sheets.Range(0,0,10,1)], style, null, null, null, null, null, GC.Spread.Sheets.ConditionalFormatting.DateOccurringType.nextWeek);
activeSheet.conditionalFormats.addRule(rule);
var d = new Date();
activeSheet.setValue(0, 0, d);
activeSheet.setValue(1, 0, new Date(d.setDate(d.getDate()+1)));
activeSheet.setValue(2, 0, new Date(d.setDate(d.getDate()+5)));
activeSheet.setValue(3, 0,new Date(d.setDate(d.getDate()+6)));
activeSheet.setValue(4, 0,new Date(d.setDate(d.getDate()+7)));
activeSheet.setValue(5, 0, new Date(d.setDate(d.getDate()+8)));

Table of contents

枚举值成员

枚举值成员

last7Days

last7Days = 3

最近7天


lastMonth

lastMonth = 5

上个月


lastQuarter

lastQuarter = 12

上个季度.


lastWeek

lastWeek = 8

上周


lastYear

lastYear = 15

去年


nextMonth

nextMonth = 6

下个月


nextQuarter

nextQuarter = 10

下个季度


nextWeek

nextWeek = 9

下周


nextYear

nextYear = 13

明年


thisMonth

thisMonth = 4

本月


thisQuarter

thisQuarter = 11

本季度


thisWeek

thisWeek = 7

这周


thisYear

thisYear = 14

今年


today

today = 0

今天


tomorrow

tomorrow = 2

明天


yesterday

yesterday = 1

昨天