[]
Add a pivot data field to a PivotTable report or PivotChart report.
public static Command AddField(IPivotTable pvTable, int fieldIndex, PivotFieldOrientation orientation, int position = -1)
Public Shared Function AddField(pvTable As IPivotTable, fieldIndex As Integer, orientation As PivotFieldOrientation, Optional position As Integer = -1) As Command
| Type | Name | Description |
|---|---|---|
| IPivotTable | pvTable | PivotTable report |
| int | fieldIndex | The index of pivot field |
| PivotFieldOrientation | orientation | The orientation of pivot field |
| int | position | Position of pivot data field |
| Type | Description |
|---|---|
| Command | A add command. |