Aspose::Cells::Pivot::PivotTable::AddFieldToArea method

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

Adds the field to the specific area.

int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, const U16String &fieldName)
ParameterTypeDescription
fieldTypePivotFieldTypeThe fields area type.
fieldNameconst 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

PivotTable::AddFieldToArea(PivotFieldType, const char16_t*) method

Adds the field to the specific area.

int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, const char16_t *fieldName)
ParameterTypeDescription
fieldTypePivotFieldTypeThe fields area type.
fieldNameconst 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

PivotTable::AddFieldToArea(PivotFieldType, int32_t) method

Adds the field to the specific area.

int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, int32_t baseFieldIndex)
ParameterTypeDescription
fieldTypePivotFieldTypeThe fields area type.
baseFieldIndexint32_tThe field index in the base fields.

ReturnValue

The field position in the specific fields.

Remarks

AddFieldToArea(PivotFieldType,PivotField)

See Also

PivotTable::AddFieldToArea(PivotFieldType, const PivotField&) method

Adds the field to the specific area.

int32_t Aspose::Cells::Pivot::PivotTable::AddFieldToArea(PivotFieldType fieldType, const PivotField &pivotField)
ParameterTypeDescription
fieldTypePivotFieldTypethe fields area type.
pivotFieldconst PivotField&the field in the base fields.

ReturnValue

the field position in the specific fields.

See Also