PivotItemCollection

PivotItemCollection class

Represents a collection of all the PivotItem objects in the PivotField’s

class PivotItemCollection;

Methods

MethodDescription
get(number)Gets the PivotItem Object at the specific index.
getCount()Gets the count of the pivot items.
getEnumerator()Gets an enumerator over the elements in this collection in proper sequence.
changeitemsOrder(number, number)Directly changes the orders of the two items.

get(number)

Gets the PivotItem Object at the specific index.

get(index: number) : PivotItem;

Parameters:

ParameterTypeDescription
indexnumber

Returns

PivotItem

getCount()

Gets the count of the pivot items.

getCount() : number;

getEnumerator()

Gets an enumerator over the elements in this collection in proper sequence.

getEnumerator() : PivotItemEnumerator;

Returns

enumerator

changeitemsOrder(number, number)

Directly changes the orders of the two items.

changeitemsOrder(sourceIndex: number, destIndex: number) : void;

Parameters:

ParameterTypeDescription
sourceIndexnumberThe current index
destIndexnumberThe dest index