## PivotTable::AddFieldToArea(PivotFieldType, const U16String\&) method


Adds the field to the specific area.

```cpp
int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, const U16String &fieldName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fieldType | PivotFieldType | The fields area type. |
| fieldName | const U16String\& | The name in the base fields. |

## ReturnValue

The field position in the specific fields.If there is no field named as it, return -1.
## Remarks



AddFieldToArea(PivotFieldType,PivotField) 
## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Enum [PivotFieldType](../../pivotfieldtype/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [PivotTable](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotTable::AddFieldToArea(PivotFieldType, const char16_t*) method


Adds the field to the specific area.

```cpp
int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, const char16_t *fieldName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fieldType | PivotFieldType | The fields area type. |
| fieldName | const char16_t* | The name in the base fields. |

## ReturnValue

The field position in the specific fields.If there is no field named as it, return -1.
## Remarks



AddFieldToArea(PivotFieldType,PivotField) 
## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Enum [PivotFieldType](../../pivotfieldtype/)
* Class [PivotTable](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotTable::AddFieldToArea(PivotFieldType, int32_t) method


Adds the field to the specific area.

```cpp
int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, int32_t baseFieldIndex)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fieldType | PivotFieldType | The fields area type. |
| baseFieldIndex | int32_t | The index in the base fields. |

## ReturnValue

The field position in the specific fields.
## Remarks



AddFieldToArea(PivotFieldType,PivotField) 
## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Enum [PivotFieldType](../../pivotfieldtype/)
* Class [PivotTable](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotTable::AddFieldToArea(PivotFieldType, const PivotField\&) method


Adds the field to the specific area.

```cpp
int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, const PivotField &pivotField)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fieldType | PivotFieldType | the fields area type. |
| pivotField | const PivotField\& | the field in the base fields. |

## ReturnValue

the field position in the specific fields.

## See Also

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