PivotTable.AddFieldToArea

AddFieldToArea(PivotFieldType, string)

Adds the field to the specific area.

public int AddFieldToArea(PivotFieldType fieldType, string fieldName)
ParameterTypeDescription
fieldTypePivotFieldTypeThe fields area type.
fieldNameStringThe name in the base fields.

Return Value

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

See Also


AddFieldToArea(PivotFieldType, int)

Adds the field to the specific area.

public int AddFieldToArea(PivotFieldType fieldType, int baseFieldIndex)
ParameterTypeDescription
fieldTypePivotFieldTypeThe fields area type.
baseFieldIndexInt32The field index in the base fields.

Return Value

The field position in the specific fields.

See Also


AddFieldToArea(PivotFieldType, PivotField)

Adds the field to the specific area.

public int AddFieldToArea(PivotFieldType fieldType, PivotField pivotField)
ParameterTypeDescription
fieldTypePivotFieldTypethe fields area type.
pivotFieldPivotFieldthe field in the base fields.

Return Value

the field position in the specific fields.

See Also