PivotItemCollection

PivotItemCollection class

Represents all the PivotItem objects in the PivotField.

class PivotItemCollection;

Properties

PropertyTypeDescription
countnumberReadonly. Gets the count of the pivot items.

Methods

MethodDescription
get(number)Gets the PivotItem Object at the specific index.
get(string)Gets the PivotItem by the specific name.
getCount()@deprecated. Please use the ‘count’ property instead. Gets the count of the pivot items.
getEnumerator()Gets an enumerator over the elements in this collection in proper sequence.
swapItem(number, number)Directly swap two items.
isNull()Checks whether the implementation object is null.

count

Readonly. Gets the count of the pivot items.

count : number;

get(number)

Gets the PivotItem Object at the specific index.

get(index: number) : PivotItem;

Parameters:

ParameterTypeDescription
indexnumber

Returns

PivotItem

get(string)

Gets the PivotItem by the specific name.

get(itemValue: string) : PivotItem;

Parameters:

ParameterTypeDescription
itemValuestring

Returns

PivotItem

getCount()

@deprecated. Please use the ‘count’ property instead. 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

swapItem(number, number)

Directly swap two items.

swapItem(index1: number, index2: number) : void;

Parameters:

ParameterTypeDescription
index1number
index2number

isNull()

Checks whether the implementation object is null.

isNull() : boolean;