PivotTableAddFieldToArea Method (PivotFieldType, String) |
Adds the field to the specific area.
Namespace:
Aspose.Cells.Pivot
Assembly:
Aspose.Cells (in Aspose.Cells.dll) Version: 22.5.0.0 (22.5.0)
Syntaxpublic int AddFieldToArea(
PivotFieldType fieldType,
string fieldName
)
Public Function AddFieldToArea (
fieldType As PivotFieldType,
fieldName As String
) As Integer
public:
int AddFieldToArea(
PivotFieldType fieldType,
String^ fieldName
)
member AddFieldToArea :
fieldType : PivotFieldType *
fieldName : string -> int
Parameters
- fieldType
- Type: Aspose.Cells.PivotPivotFieldType
The fields area type. - fieldName
- Type: SystemString
The name in the base fields.
Return Value
Type:
Int32The field position in the specific fields.If there is no field named as it, return -1.
See Also