跳到主要内容

ApiFilter

Represents the ApiFilter class.

Properties

NameTypeDescription
Criteria1string | string[] | number | XlDynamicFilterCriteria | nullReturns the first criteria associated with the filter.
Criteria2string | nullReturns the second criteria associated with the filter (used with xlAnd/xlOr).
OnbooleanIndicates whether any filter is applied to this column.
OperatorXlAutoFilterOperator | nullReturns the operator used for the filter on this column.
ParentApiAutoFilterReturns the parent filters collection for this filter column.

Methods

MethodReturnsDescription
GetCriteria1string | string[] | number | XlDynamicFilterCriteria | nullReturns the first criteria associated with the filter for this column.
GetCriteria2string | nullReturns the second criteria associated with the filter for this column.
GetOnbooleanIndicates whether any filter is applied on this column. The property is true when at least one of the following underlying structures is present for the column: - Filters - CustomFiltersObj - DynamicFilter - ColorFilter - Top10
GetOperatorXlAutoFilterOperator | nullReturns the operator used for the filter on this column.
GetParentApiAutoFilterReturns the parent filters collection for this filter column.