
## PivotItemCollection class

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

## Methods

| Name | Description |
| --- | --- |
| [changeitemsOrder(sourceIndex, destIndex)](#changeitemsorder) | Directly changes the orders of the two items. |
| [get()](#get) | Gets the PivotItem Object at the specific index. |
| [get()](#get-1) | Gets the PivotItem Object of the specific name. |
| [getCount()](#getcount) | Gets the count of the pivot items. |
| [iterator()](#iterator) | Gets an enumerator over the elements in this collection in proper sequence. |
| [swapItem()](#swapitem) |  |

### 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 |

### get() {#get}

Gets the PivotItem Object at the specific index.

### get() {#get-1}

Gets the PivotItem Object of the specific name.

### getCount() {#getcount}

Gets the count of the pivot items.

### iterator() {#iterator}

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

**Returns:** Iterator — `Iterator` enumerator

### swapItem() {#swapitem}
