[]
Adds a new filter to the collection.
IPivotFilter Add(PivotFilterType type, int dataFieldIndex = -1, object value1 = null, object value2 = null, bool? wholeDayFilter = null)
Function Add(type As PivotFilterType, Optional dataFieldIndex As Integer = -1, Optional value1 As Object = Nothing, Optional value2 As Object = Nothing, Optional wholeDayFilter As Boolean? = Nothing) As IPivotFilter
| Type | Name | Description |
|---|---|---|
| PivotFilterType | type | The PivotFilterType type of filter. |
| int | dataFieldIndex | |
| object | value1 | The first filter value. |
| object | value2 | The second filter value. |
| bool? | wholeDayFilter | Specifies a filter based on days. |
| Type | Description |
|---|---|
| IPivotFilter | An IPivotFilter object. |