[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.SortField

SortField Method

SortField(IPivotTable, int, FieldSortType, int, SortType)

Initializes a new command to sort the IPivotField in the IPivotTable.

Declaration
public static Command SortField(IPivotTable pivotTable, int pivotFieldIndex, FieldSortType sortOrder, int dataFieldPosition = -1, SortType sortType = SortType.SortLabels)
Public Shared Function SortField(pivotTable As IPivotTable, pivotFieldIndex As Integer, sortOrder As FieldSortType, Optional dataFieldPosition As Integer = -1, Optional sortType As SortType = SortType.SortLabels) As Command
Parameters
Type Name Description
IPivotTable pivotTable

The IPivotTable object.

int pivotFieldIndex
FieldSortType sortOrder
int dataFieldPosition
SortType sortType
Returns
Type Description
Command

A sort command.