## PivotFilterCollection::AddLabelFilter(int32_t, PivotFilterType, const U16String\&, const U16String\&) method


Filters by captions of row or column pivot field.

```cpp
PivotFilter Aspose::Cells::Pivot::PivotFilterCollection::AddLabelFilter(int32_t baseFieldIndex, PivotFilterType type, const U16String &label1, const U16String &label2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| baseFieldIndex | int32_t | The index of field in the source. |
| type | PivotFilterType | The type of filtering data. |
| label1 | const U16String\& | The label of filter condition |
| label2 | const U16String\& | The upper-bound label of between filter condition |

## See Also

* Class [PivotFilter](../../pivotfilter/)
* Class [Vector](../../../aspose.cells/vector/)
* Enum [PivotFilterType](../../pivotfiltertype/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [PivotFilterCollection](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotFilterCollection::AddLabelFilter(int32_t, PivotFilterType, const char16_t*, const char16_t*) method


Filters by captions of row or column pivot field.

```cpp
PivotFilter Aspose::Cells::Pivot::PivotFilterCollection::AddLabelFilter(int32_t baseFieldIndex, PivotFilterType type, const char16_t *label1, const char16_t *label2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| baseFieldIndex | int32_t | The index of field in the source. |
| type | PivotFilterType | The type of filtering data. |
| label1 | const char16_t* | The label of filter condition |
| label2 | const char16_t* | The upper-bound label of between filter condition |

## See Also

* Class [PivotFilter](../../pivotfilter/)
* Class [Vector](../../../aspose.cells/vector/)
* Enum [PivotFilterType](../../pivotfiltertype/)
* Class [PivotFilterCollection](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
