[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.PivotTables.IPivotFilters.Add

Add Method

Add(PivotFilterType, int, object, object, bool?)

Adds a new filter to the collection.

Declaration
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
Parameters
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.

Returns
Type Description
IPivotFilter

An IPivotFilter object.