[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.MoveField

MoveField Method

MoveField(IPivotTable, int, PivotFieldOrientation, PivotFieldOrientation, int)

Change a fields of PivotTable report or PivotChart report.

Declaration
public static Command MoveField(IPivotTable pvTable, int position, PivotFieldOrientation orientation, PivotFieldOrientation newOrientation, int newPosition)
Public Shared Function MoveField(pvTable As IPivotTable, position As Integer, orientation As PivotFieldOrientation, newOrientation As PivotFieldOrientation, newPosition As Integer) As Command
Parameters
Type Name Description
IPivotTable pvTable

The PivotTable report

int position

The index of pivot field

PivotFieldOrientation orientation

Current orientation of pivot field

PivotFieldOrientation newOrientation

The new orientation of pivot field

int newPosition

The new position of pivot field

Returns
Type Description
Command

A change command.