[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
在线咨询 立即试用
(Showing Draft Content)

GC.Spread.Sheets.ConditionalFormatting.DateOccurringType

Enumeration: DateOccurringType

Sheets.ConditionalFormatting.DateOccurringType

指定日期出现类型。

example

//此示例创建规则。
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

Enumeration members

Enumeration members

last7Days

• last7Days = 3

指定最近七天。


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

指定昨天。