add_field_to_area method

add_field_to_area(self, field_type, field_name)

Adds the field to the specific area.

Returns

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


def add_field_to_area(self, field_type, field_name):
    ...
ParameterTypeDescription
field_typeaspose.cells.pivot.PivotFieldTypeThe fields area type.
field_nameSystem.StringThe name in the base fields.

add_field_to_area(self, field_type, base_field_index)

Adds the field to the specific area.

Returns

The field position in the specific fields.


def add_field_to_area(self, field_type, base_field_index):
    ...
ParameterTypeDescription
field_typeaspose.cells.pivot.PivotFieldTypeThe fields area type.
base_field_indexintThe field index in the base fields.

add_field_to_area(self, field_type, pivot_field)

Adds the field to the specific area.

Returns

the field position in the specific fields.


def add_field_to_area(self, field_type, pivot_field):
    ...
ParameterTypeDescription
field_typeaspose.cells.pivot.PivotFieldTypethe fields area type.
pivot_fieldaspose.cells.pivot.PivotFieldthe field in the base fields.

See Also