PivotFieldCollection

PivotFieldCollection class

Represents a collection of all the PivotField objects in the PivotTable’s specific PivotFields type.

Properties

NameTypeDescription
TypeNumberGets the PivotFields type. The value of the property is PivotFieldType integer constant.
CountNumberGets the count of the pivotFields.
Item (int)PivotFieldGets the PivotField Object at the specific index.
Item (java.lang.String)PivotFieldGets the PivotField Object of the specific name.

Methods

NameDescription
iteratorGets an enumerator over the elements in this collection in proper sequence.
addByBaseIndexAdds a PivotField Object to the specific type PivotFields.
addAdds a PivotField Object to the specific type PivotFields.
clearclear all fields of PivotFieldCollection
moveMoves the PivotField from current position to destination position

PivotFieldCollection.Type property

Gets the PivotFields type. The value of the property is PivotFieldType integer constant.

Type: Number

PivotFieldCollection.Count property

Gets the count of the pivotFields.

Type: Number

PivotFieldCollection.Item (int) property

Gets the PivotField Object at the specific index.

Type: PivotField

PivotFieldCollection.Item (java.lang.String) property

Gets the PivotField Object of the specific name.

Type: PivotField

iterator()

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

Returns: enumerator

addByBaseIndex(baseFieldIndex)

Adds a PivotField Object to the specific type PivotFields.

ParameterTypeDescription
baseFieldIndexNumberfield index in the base PivotFields.

Returns: the index of the PivotField Object in this PivotFields.

add(pivotField)

Adds a PivotField Object to the specific type PivotFields.

ParameterTypeDescription
pivotFieldPivotFielda PivotField Object.

Returns: the index of the PivotField Object in this PivotFields.

clear()

clear all fields of PivotFieldCollection

move(currPos, destPos)

Moves the PivotField from current position to destination position

ParameterTypeDescription
currPosNumberCurrent position of PivotField based on zero
destPosNumberDestination position of PivotField based on zero