## PivotField::HideItem(int32_t, bool) method


Sets whether the specific [PivotItem](../../pivotitem/) in a data field is hidden.


>Deprecated
>
>Use PivotField.PivotItems[int].IsHidden instead. 
```cpp
void Aspose::Cells::Pivot::PivotField::HideItem(int32_t index, bool isHidden)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | the index of the pivotItem in the pivotField. |
| isHidden | bool | whether the specific [PivotItem](../../pivotitem/) is hidden |
## Remarks



NOTE: This method is now obsolete. Instead, please use PivotField.PivotItems[int].IsHidden property instead . This method will be removed 12 months later since August 2026. **Aspose** apologizes for any inconvenience you may have experienced.


## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotField](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotField::HideItem(const U16String\&, bool) method


Sets whether the specific [PivotItem](../../pivotitem/) in a data field is hidden.


>Deprecated
>
>Use PivotField.PivotItems[string].IsHidden instead. 
```cpp
void Aspose::Cells::Pivot::PivotField::HideItem(const U16String &itemValue, bool isHidden)
```


| Parameter | Type | Description |
| --- | --- | --- |
| itemValue | const U16String\& | The name of the pivotItem in the pivotField. |
| isHidden | bool | Whether the specific [PivotItem](../../pivotitem/) is hidden |
## Remarks



NOTE: This method is now obsolete. Instead, please use PivotField.PivotItems[string].IsHidden property instead . This method will be removed 12 months later since August 2026. **Aspose** apologizes for any inconvenience you may have experienced.


## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [PivotField](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotField::HideItem(const char16_t*, bool) method


Sets whether the specific [PivotItem](../../pivotitem/) in a data field is hidden.


>Deprecated
>
>Use PivotField.PivotItems[string].IsHidden instead. 
```cpp
void Aspose::Cells::Pivot::PivotField::HideItem(const char16_t *itemValue, bool isHidden)
```


| Parameter | Type | Description |
| --- | --- | --- |
| itemValue | const char16_t* | The name of the pivotItem in the pivotField. |
| isHidden | bool | Whether the specific [PivotItem](../../pivotitem/) is hidden |
## Remarks



NOTE: This method is now obsolete. Instead, please use PivotField.PivotItems[string].IsHidden property instead . This method will be removed 12 months later since August 2026. **Aspose** apologizes for any inconvenience you may have experienced.


## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotField](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
