PivotFieldSortSetting

PivotFieldSortSetting class

Represents the setting of sorting pivot fields.

class PivotFieldSortSetting;

Methods

MethodDescription
getSortType()Represents the SortOrder.
isSortByLabels()Indicates whether sorting the field by itself or data field.
getFieldIndex()Represents the index of the field sorted by. -1 means sorting the PivotField by the labels,others means sorting by the data field.
getLineTypeSortedBy()The pivot line type sorted by.
isSimpleSort()Indicates whether a simple data sort operation will be applied.
getCell()Sorts by the values in which row or column.
isNull()Checks whether the implementation object is null.

getSortType()

Represents the SortOrder.

getSortType() : SortOrder;

Returns

SortOrder

isSortByLabels()

Indicates whether sorting the field by itself or data field.

isSortByLabels() : boolean;

getFieldIndex()

Represents the index of the field sorted by. -1 means sorting the PivotField by the labels,others means sorting by the data field.

getFieldIndex() : number;

getLineTypeSortedBy()

The pivot line type sorted by.

getLineTypeSortedBy() : PivotLineType;

Returns

PivotLineType

Remarks

Only works when not sorting this field by labels.

isSimpleSort()

Indicates whether a simple data sort operation will be applied.

isSimpleSort() : boolean;

Remarks

The default value is true.

getCell()

Sorts by the values in which row or column.

getCell() : string;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;