GridPivotTable.AddFieldToArea

AddFieldToArea(GridPivotFieldType, int)

Adds the field to the specific area.

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

Return Value

The field position in the specific fields.

See Also


AddFieldToArea(GridPivotFieldType, string)

Adds the field to the specific area.

public int AddFieldToArea(GridPivotFieldType fieldType, string fieldName)
ParameterTypeDescription
fieldTypeGridPivotFieldTypeThe 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