
## PivotItemCollection class

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

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Count](#count) | Number | Gets the count of the pivot items. |
| [Item (int)](#itemint) | PivotItem | Gets the PivotItem Object at the specific index. |
| [Item (java.lang.String)](#itemjavalangstring) | PivotItem | Gets the PivotItem Object of the specific name. |

## Methods

| Name | Description |
| --- | --- |
| [iterator](#iterator) | Gets an enumerator over the elements in this collection in proper sequence. |
| [changeitemsOrder](#changeitemsorder) | Directly changes the orders of the two items. |
| [swapItem](#swapitem) |  |

### PivotItemCollection.Count property {#count}

Gets the count of the pivot items.

**Type:** Number

### PivotItemCollection.Item (int) property {#itemint}

Gets the PivotItem Object at the specific index.

**Type:** PivotItem

### PivotItemCollection.Item (java.lang.String) property {#itemjavalangstring}

Gets the PivotItem Object of the specific name.

**Type:** PivotItem

### iterator() {#iterator}

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

**Returns:** enumerator

### changeitemsOrder(sourceIndex, destIndex) {#changeitemsorder}

Directly changes the orders of the two items.

| Parameter | Type | Description |
| --- | --- | --- |
| sourceIndex | Number | The current index |
| destIndex | Number | The dest index |

### swapItem(index1, index2) {#swapitem}
