PivotTableAddFieldToArea Method (PivotFieldType, PivotField)

Adds the field to the specific area.

Namespace:  Aspose.Cells.Pivot
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public int AddFieldToArea(
	PivotFieldType fieldType,
	PivotField pivotField
)

Parameters

fieldType
Type: Aspose.Cells.PivotPivotFieldType
the fields area type.It could be one of the following values:
PivotFieldType.Row
PivotFieldType.Column
PivotFieldType.Data
PivotFieldType.Page
pivotField
Type: Aspose.Cells.PivotPivotField
the field in the base fields.

Return Value

Type: Int32
the field position in the specific fields.
See Also