PivotTableAddFieldToArea Method (PivotFieldType, String)

Adds the field to the specific area.

Namespace:  Aspose.Cells.Pivot
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.10.0.0 (20.10)
Syntax
public int AddFieldToArea(
	PivotFieldType fieldType,
	string fieldName
)

Parameters

fieldType
Type: Aspose.Cells.PivotPivotFieldType
The fields area type.
fieldName
Type: SystemString
The name in the base fields.

Return Value

Type: Int32
The field position in the specific fields.If there is no field named as it, return -1.
See Also