Excel.PivotDateFilter interface

要应用于 PivotField 的日期筛选器的可配置模板。 定义 condition 需要设置哪些条件才能使筛选器运行。

注解

[ API 集:ExcelApi 1.12 ]

属性

comparator

比较器是与其他值进行比较的静态值。 比较的类型由 条件定义。

condition

指定筛选器的条件,该条件定义必要的筛选条件。

exclusive

如果 true为 ,则筛选器 排除 满足条件的项目。 默认值为 false (筛选器,以包含符合条件) 的项。

lowerBound

筛选条件的范围的 between 下限。

upperBound

筛选条件的范围 between 上限。

wholeDays

对于 equalsbeforeafterbetween 筛选器条件,指示是否应将比较作为整天进行。

属性详细信息

comparator

比较器是与其他值进行比较的静态值。 比较的类型由 条件定义。

comparator?: Excel.FilterDatetime;

属性值

注解

[ API 集:ExcelApi 1.12 ]

condition

指定筛选器的条件,该条件定义必要的筛选条件。

condition: Excel.DateFilterCondition | "Unknown" | "Equals" | "Before" | "BeforeOrEqualTo" | "After" | "AfterOrEqualTo" | "Between" | "Tomorrow" | "Today" | "Yesterday" | "NextWeek" | "ThisWeek" | "LastWeek" | "NextMonth" | "ThisMonth" | "LastMonth" | "NextQuarter" | "ThisQuarter" | "LastQuarter" | "NextYear" | "ThisYear" | "LastYear" | "YearToDate" | "AllDatesInPeriodQuarter1" | "AllDatesInPeriodQuarter2" | "AllDatesInPeriodQuarter3" | "AllDatesInPeriodQuarter4" | "AllDatesInPeriodJanuary" | "AllDatesInPeriodFebruary" | "AllDatesInPeriodMarch" | "AllDatesInPeriodApril" | "AllDatesInPeriodMay" | "AllDatesInPeriodJune" | "AllDatesInPeriodJuly" | "AllDatesInPeriodAugust" | "AllDatesInPeriodSeptember" | "AllDatesInPeriodOctober" | "AllDatesInPeriodNovember" | "AllDatesInPeriodDecember";

属性值

Excel.DateFilterCondition | "Unknown" | "Equals" | "Before" | "BeforeOrEqualTo" | "After" | "AfterOrEqualTo" | "Between" | "Tomorrow" | "Today" | "Yesterday" | "NextWeek" | "ThisWeek" | "LastWeek" | "NextMonth" | "ThisMonth" | "LastMonth" | "NextQuarter" | "ThisQuarter" | "LastQuarter" | "NextYear" | "ThisYear" | "LastYear" | "YearToDate" | "AllDatesInPeriodQuarter1" | "AllDatesInPeriodQuarter2" | "AllDatesInPeriodQuarter3" | "AllDatesInPeriodQuarter4" | "AllDatesInPeriodJanuary" | "AllDatesInPeriodFebruary" | "AllDatesInPeriodMarch" | "AllDatesInPeriodApril" | "AllDatesInPeriodMay" | "AllDatesInPeriodJune" | "AllDatesInPeriodJuly" | "AllDatesInPeriodAugust" | "AllDatesInPeriodSeptember" | "AllDatesInPeriodOctober" | "AllDatesInPeriodNovember" | "AllDatesInPeriodDecember"

注解

[ API 集:ExcelApi 1.12 ]

exclusive

如果 true为 ,则筛选器 排除 满足条件的项目。 默认值为 false (筛选器,以包含符合条件) 的项。

exclusive?: boolean;

属性值

boolean

注解

[ API 集:ExcelApi 1.12 ]

lowerBound

筛选条件的范围的 between 下限。

lowerBound?: Excel.FilterDatetime;

属性值

注解

[ API 集:ExcelApi 1.12 ]

upperBound

筛选条件的范围 between 上限。

upperBound?: Excel.FilterDatetime;

属性值

注解

[ API 集:ExcelApi 1.12 ]

wholeDays

对于 equalsbeforeafterbetween 筛选器条件,指示是否应将比较作为整天进行。

wholeDays?: boolean;

属性值

boolean

注解

[ API 集:ExcelApi 1.12 ]