[]
Initializes a new command to filter the IPivotTable by a specific IPivotField.
public static Command Filter(IPivotTable pivotTable, int pivotFieldIndex, IndexBitmap visibleItemsList)
Public Shared Function Filter(pivotTable As IPivotTable, pivotFieldIndex As Integer, visibleItemsList As IndexBitmap) As Command
| Type | Name | Description |
|---|---|---|
| IPivotTable | pivotTable | The IPivotTable object. |
| int | pivotFieldIndex | The index of IPivotField |
| IndexBitmap | visibleItemsList | The array of the visible indexes. |
| Type | Description |
|---|---|
| Command | A filter command. |
Initializes a new command to filter the IPivotTable by a specific IPivotField with specified criteria.
public static Command Filter(IPivotTable pivotTable, int pivotFieldIndex, PivotFilterType type, object criteria1 = null, object criteria2 = null, int dataFieldPosition = -1, bool wholeDays = false)
Public Shared Function Filter(pivotTable As IPivotTable, pivotFieldIndex As Integer, type As PivotFilterType, Optional criteria1 As Object = Nothing, Optional criteria2 As Object = Nothing, Optional dataFieldPosition As Integer = -1, Optional wholeDays As Boolean = False) As Command
| Type | Name | Description |
|---|---|---|
| IPivotTable | pivotTable | The IPivotTable object. |
| int | pivotFieldIndex | The index of IPivotField |
| PivotFilterType | type | The type of filter in a PivotTable |
| object | criteria1 | filter value 1. |
| object | criteria2 | filter value 2. |
| int | dataFieldPosition | The field to which the filter is attached. |
| bool | wholeDays |
| Type | Description |
|---|---|
| Command | A filter command. |