## PivotAreaFilter class


Represents the filter of [PivotArea](../pivotarea/) for [PivotTable](../pivottable/).

```cpp
class PivotAreaFilter
```

## Methods

| Method | Description |
| --- | --- |
| [GetFieldIndex()](./getfieldindex/) | Gets the index of the field in the source fields which this filter refers to. A value of -2 indicates the values field. |
| [GetSelected()](./getselected/) | Indicates whether this field has selection. Only works when the [PivotTable](../pivottable/) is in [Outline](../../aspose.cells/outline/) view. |
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
| [IsSubtotalSet(PivotFieldSubtotalType subtotalType)](./issubtotalset/) | Gets which subtotal is set for this filter. |
| explicit [operator bool()](./operator_bool/) const | operator bool() |
| [operator=(const PivotAreaFilter\& src)](./operator_asm/) | operator= |
| [PivotAreaFilter()](./pivotareafilter/) | Default constructor. |
| [PivotAreaFilter(PivotAreaFilter_Impl* impl)](./pivotareafilter/) | Constructs from an implementation object. |
| [PivotAreaFilter(const PivotAreaFilter\& src)](./pivotareafilter/) | Copy constructor. |
| [SetSelected(bool value)](./setselected/) | Indicates whether this field has selection. Only works when the [PivotTable](../pivottable/) is in [Outline](../../aspose.cells/outline/) view. |
| [SetSubtotals(PivotFieldSubtotalType subtotalType, bool shown)](./setsubtotals/) | Subtotal for the filter. |
| [~PivotAreaFilter()](./~pivotareafilter/) | Destructor. |
## Fields

| Field | Description |
| --- | --- |
| [_impl](./_impl/) | The implementation object. |
## See Also

* Namespace [Aspose::Cells::Pivot](../)
* Library [Aspose.Cells for C++](../../)
