[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.AddField

AddField Method

AddField(IPivotTable, int, PivotFieldOrientation, int)

Add a pivot data field to a PivotTable report or PivotChart report.

Declaration
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
Parameters
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

Returns
Type Description
Command

A add command.