[]
Adds a data field to a IPivotTable report.
IPivotField AddDataField(IPivotField field, string caption = null, ConsolidationFunction function = ConsolidationFunction.Automatic)
Function AddDataField(field As IPivotField, Optional caption As String = Nothing, Optional [function] As ConsolidationFunction = ConsolidationFunction.Automatic) As IPivotField
| Type | Name | Description |
|---|---|---|
| IPivotField | field | The unique PivotTable field. |
| string | caption | The label used in the PivotTable report to identify this data field. |
| ConsolidationFunction | function | The function performed in the added data field. |
| Type | Description |
|---|---|
| IPivotField | Returns a IPivotField object that represents the new data field. |